Gary Yu
76f4915bf9
improve: time crate flagged as deprecated, switch to actively maintained chrono crate ( #1297 )
...
* improve: time crate flagged as deprecated, switch to actively maintained chrono crate
* improve: complete the switching from deprecated time crate to chrono crate, for all the tests part
* improve: complete switching to chrono crate, for the left tests in 'chain' and 'wallet'
2018-07-30 09:33:28 +01:00
Ivan Sorokin
5c029e3f87
Make grin.toml config optional ( #1278 )
...
* Make grin.toml config optional. Mirror exisiting config parameters in grin.toml to source code, so binary can run without a config file. Add test for it.
* fixup! Make grin.toml config optional
2018-07-29 17:48:24 -07:00
Gary Yu
61506a8064
clean some build warnings ( #1288 )
...
* clean some build warnings
* undo the warning suppress for aggsig
2018-07-27 15:16:14 +01:00
Yeastplume
a053790ee6
filter outputs by tx_id ( #1298 )
2018-07-27 09:39:01 +01:00
Yeastplume
70b97b0a06
add tx retrieval function ( #1295 )
...
Web-Wallet support updates
2018-07-24 20:49:29 +01:00
Gary Yu
724b19e648
process_block check_known() check orphans also, to avoid double-processing ( #1287 )
2018-07-23 21:29:31 -07:00
Gary Yu
3b6b85ec57
Fix fast sync mode failure when 'sync_state' was switched to 'HeaderSync' ( #1286 )
2018-07-23 10:37:35 -07:00
Ignotus Peverell
f5b03a6d5a
Fix sync hash cache ( #1285 )
...
* Refactor hash cache handling to add properly. Only add to cache if the block is definitevely accepted or rejected.
* Dedup of header processing now looks like premature optimization. Very fast anyway. Removing the header hash cache.
2018-07-22 12:43:55 -07:00
Gary Yu
75b72e48ff
Fix bug on block sync ( #1271 ) ( #1281 )
...
Do not add orphans to the "already seen" cache.
2018-07-22 12:25:56 -07:00
Quentin Le Sceller
d67556a6dd
Add Stratum documentation ( #1283 )
2018-07-22 12:12:07 -07:00
beaver-tooth
46c666ae75
Update local network setup doc ( #1276 )
...
* Update local network setup doc
* Updated local net doc with a few clarifications
2018-07-20 23:05:54 -07:00
Quentin Le Sceller
bac6e813bb
Change error 32701 to 32000 ( #1282 )
2018-07-20 23:03:28 -07:00
yuntai
a1bd593800
[Simple] Fix a broken link in doc/table_of_contents ( #1279 )
...
* [Simple] Fix a broken link in doc/table_of_contents
2018-07-20 12:09:47 -04:00
Yeastplume
80f82eecc1
added transaction cancellation feature ( #1280 )
2018-07-20 15:13:37 +01:00
Yeastplume
4a5a41fb30
LMDB Wallet Transaction Log + LMDB Migration for all ( #1268 )
...
* beginnings of transaction log for db
* add migrate utility for file-wallet to db wallet
* rustfmt + missing file
* update transaction log entry status on confirmed txs, add basic tests for transaction log
2018-07-19 10:35:36 +01:00
Antioch Peverell
a6dc48deae
add validation to tx to ensure we have no coinbase outputs or kernels in there ( #1266 )
...
* add validation to tx to ensure we have no coinbase outputs or kernels in there
* add some comments
2018-07-16 22:46:36 +01:00
Ignotus Peverell
3d89e86906
Various improvements and cleanup in chain crate ( #1265 )
...
* Remove now unnecessary txhashset write lock
* Ring buffer of hashes the chain has already processed
* Specifically report too old blocks as peer should be banned
* Move sync check for block relay, clean TODO
* No use processing transactions when syncing
* Ignore blocks older than horizon in pruning nodes
2018-07-16 21:58:56 +01:00
Conor Scott
bff0c6b6c6
Update necessary rust version in build doc ( #1258 )
...
* Update necessary rust version in build doc
* Add 'rustup update' as option in build docs
2018-07-16 02:01:21 +01:00
Ignotus Peverell
a6af94a76f
Validate compact block header before hydrating
2018-07-13 19:38:12 +01:00
Ignotus Peverell
1e7e312cf3
TODO cleanup, locator made faster by header cache in chain store
2018-07-13 18:45:24 +01:00
Yeastplume
41e20056d4
db wallet now working identically to file wallet ( #1259 )
2018-07-13 15:27:16 +01:00
Ignotus Peverell
42bc03f5f3
Add cuckoo solution to header API
2018-07-13 02:20:28 +01:00
Ignotus Peverell
a45d17257a
Cleanup ping-pong serialization
2018-07-13 00:55:21 +01:00
Ignotus Peverell
2b90ba08c2
Handling errors when parsing JSON-RPC params
...
Fixes #1255
2018-07-13 00:28:30 +01:00
emmick4
92bfb7e819
Update build.md ( #1252 )
...
Don't specify building from testnet3 since it doesn't include necessary commits
2018-07-12 20:52:43 +01:00
Ignotus Peverell
12a2fc4f5a
Wallet command exit status on error ( #1253 )
2018-07-12 20:05:43 +01:00
Ignotus Peverell
bdfd5405c0
Leverage sync state to accept txhashset ( #1251 )
...
Fixes #1246
2018-07-12 17:06:52 +01:00
Yeastplume
bacadfb5ab
Wallet API Test Client ( #1242 )
...
* beginnings to testclient implementation for more complete wallet API testing
* rework TestWalletClient to be message-based proxy
* test fix
* wallet tests now exercising the API directly as much as possible, capable of instantiating multiple wallets
* test in place to run both file and db wallets
* ensure all wallet api functions lock wallet as needed. Split up transaction creation from posting to chain
2018-07-12 16:49:37 +01:00
yuntai
25ca2de487
Add block header handlers to grin api ( #1248 )
...
Support http://127.0.0.1:13413/v1/headers/{}
2018-07-11 22:43:08 +01:00
Quentin Le Sceller
83be242fdf
Add blockfound response in stratum ( #1245 )
...
* Add blockfound response in stratum
2018-07-11 09:17:24 -07:00
Ignotus Peverell
708afdbbb6
Shorter message and no stack on block refusal
2018-07-11 01:06:39 +01:00
yuntai
ad69dae9e5
Avoid potential 'attempt to add with overflow' panic ( #1213 )
2018-07-10 22:23:15 +01:00
Yeastplume
49cbab90f6
WalletClient trait refactor ( #1238 )
...
* refactor WalletClient
* revert chain changes
* missing files
2018-07-10 09:18:24 +01:00
Blade Doyle
c7d78446f3
add job_id to stratum job and solution rpc messages ( #1240 )
...
* add job_id to stratum job and solution rpc messages
* remove unnecessary clone
2018-07-10 09:18:09 +01:00
obxium
64db4d92f0
Update build documentation ( #1236 )
...
- Correct order of operations in build steps
2018-07-09 22:07:09 -07:00
yeastplume
920ad08f70
merging milestone/testnet3 into master to become new master
2018-07-09 19:58:51 +01:00
Antioch Peverell
f33c39cb66
call validate_kernel_history directly from txhashset_write ( #1234 )
...
no need for thr skip_kernel_hist bool now
2018-07-09 19:04:17 +01:00
Yeastplume
d5a6992be9
Wallet implementation dynamic dispatch ( #1235 )
...
* add ability to instantiate wallets with different backend implementations
* test fix
2018-07-09 18:01:19 +01:00
Ignotus Peverell
6450b603ea
Fix coinbase key reuse in stratum, only reset on new block ( #1233 )
2018-07-09 09:14:34 +01:00
jaspervdm
74f1335bfd
Add cuckoo size to block API ( #1232 )
2018-07-09 09:14:04 +01:00
Ignotus Peverell
e397ea2d91
Updated build instructions for T3
2018-07-08 20:22:12 +01:00
Ignotus Peverell
d2a5a8ddb3
Default block build time to 15 sec in miner
2018-07-08 19:15:15 +01:00
Ignotus Peverell
34cf6ee3db
Genesis block and new seeds
2018-07-08 18:31:06 +01:00
Ignotus Peverell
a7cde3fe2b
No need to double-validate
2018-07-08 18:28:56 +01:00
Antioch Peverell
980378eb65
fix misbehaving simulnet fastsync test ( #1227 )
...
* fix misbehaving simulnet fastsync test
cleanup redundant cutoff vs bitmap params is rewind and check_compact
* make sure we do not verify full kernel history on a writeable txhashset extension
rework simulnet simulate_fast_sync test to be more robust
* fixup store tests
* sleep for a bit longer to give nodes time to update
their sync_state correctly
* tweak timing of simulate_block_propagation
2018-07-08 17:37:09 +01:00
Antioch Peverell
5c142864ff
txhashset extension error was being silently dropped ( #1228 )
2018-07-08 12:42:21 +01:00
mimblewimble-robot
6f296005d0
[milestone/testnet3] Update Dandelion Doc and Simulation ( #1226 )
...
* Update doc and simulation
2018-07-07 22:30:09 -04:00
Ignotus Peverell
567baa479f
Minor globals cleanup
2018-07-07 22:17:11 +01:00
Ignotus Peverell
7571a16d54
Config on testnet3 by default
2018-07-06 23:50:18 +01:00
Ignotus Peverell
0ab3cf29b8
Re-enable kernel history validation, re-add lost fix to validate the txhashset in a read only extension.
2018-07-06 23:48:41 +01:00