Commit graph

850 commits

Author SHA1 Message Date
Alex Akselrod c85893de1a chain+waddrmgr+wallet: store all hashes for better reorg handling (#5) 2018-05-23 19:38:56 -07:00
Olaoluwa Osuntokun 4ac75773d7 chain: wait for rescan exit before re-creating, ensure thread safety 2018-05-23 19:38:56 -07:00
Olaoluwa Osuntokun dcc7bbc14d build: update to latest build of neutrino 2018-05-23 19:38:56 -07:00
Olaoluwa Osuntokun 3567ae87f4 wallet: avoid double-writing block stamps in onFilteredBlockConnected 2018-05-23 19:38:56 -07:00
Olaoluwa Osuntokun 598394c51a build: update glide files to point to roasbeef+neutrino proper 2018-05-23 19:38:56 -07:00
Olaoluwa Osuntokun 3dc7a8529c multi: switch all imports to roasbeef's forks 2018-05-23 19:38:56 -07:00
Olaoluwa Osuntokun d9defda7ff build: update neutrino hash in latest glide file 2018-05-23 19:38:56 -07:00
Olaoluwa Osuntokun efbe0c8ef4 build: update commit hash for neutrino 2018-05-23 19:38:56 -07:00
Olaoluwa Osuntokun 7acc49dddb chain: also register blockConnected for NotigyReceived calls 2018-05-23 19:38:56 -07:00
Olaoluwa Osuntokun 772fbd4726 chain: dispatch BlockConnected notifications for NeutrinoClient 2018-05-23 19:38:56 -07:00
Olaoluwa Osuntokun dbe472edd6 build: update neutrino glide.lock hash, API usage 2018-05-23 19:38:56 -07:00
Alex 3f12fa3c6c chain+wallet: rename SPVChain to NeutrinoClient 2018-05-23 19:38:56 -07:00
Alex 578e95c4ec glide: Update glide.lock for neutrino 2018-05-23 19:38:56 -07:00
Alex ed58fa8f80 Update glide.lock for new Neutrino commit 2018-05-23 19:38:56 -07:00
Alex 4598742465 chain: stop SPV rescan immediately when wallet is already caught up 2018-05-23 19:38:56 -07:00
Alex 3601b2fa14 chain: fix RescanFinished notification 2018-05-23 19:38:56 -07:00
Alex d6bcab4912 chain: make ChainService public member of SPVChain struct 2018-05-23 19:38:56 -07:00
Alex 0e7e8404e5 chain: fix Neutrino driver bugs 2018-05-23 19:38:56 -07:00
Alex 4a25ae194a Fix Neutrino instantiation. 2018-05-23 19:38:56 -07:00
Alex b5873a5b2c Finish integration of Neutrino; still untested. 2018-05-23 19:38:56 -07:00
Alex 9e5250e6d7 More neutrino integration into btcwallet. 2018-05-23 19:38:56 -07:00
Alex 3d81f856fd Move spvchain into neutrino and start integration w/btcwallet 2018-05-23 19:38:56 -07:00
Alex 32adc3c43f Make rescan a struct, add spending tx to GetUtxo, start integration. 2018-05-23 19:38:56 -07:00
Alex 8b734ce696 Fix bugs and add SendTransaction, which isn't that great. 2018-05-23 19:38:56 -07:00
Alex 59f3db7a1b Reduce numQueryThreads to 20 and re-enable testRandomBlocks. Works! 2018-05-23 19:38:56 -07:00
Alex 7c23cf13b3 GetUtxo fixed. 2018-05-23 19:38:56 -07:00
Alex b549587296 Add GetUtxo. Mostly works. 2018-05-23 19:38:56 -07:00
Alex ddc841924b Add TXIDs to rescan. Fix/finish EndBlock. Disable testRandomBlocks. 2018-05-23 19:38:56 -07:00
Alex e7bae84662 Rescan works and tests pass. 2018-05-23 19:38:56 -07:00
Alex bebe29012e Rescan tests pass except an intermittent close of closed channel. 2018-05-23 19:38:56 -07:00
Alex 0b08bc56cb Added rescan and notifications; still working on the tests. 2018-05-23 19:38:56 -07:00
Alex 551a03107a Database update and refactor after rebase. 2018-05-23 19:38:56 -07:00
Alex e273e178dd Repoint repo to btcsuite on btcwalletln, and a few rebase fixes. 2018-05-23 19:38:56 -07:00
Alex 189b65ddaf Factor out filters to btcutil. 2018-05-23 19:38:56 -07:00
Alex fe632ff233 Fix concurrency issues. 2018-05-23 19:38:56 -07:00
Alex c7b26a11e2 Improved concurrency, added ability to get blocks from network. 2018-05-23 19:38:56 -07:00
Alex 6a1cb8c846 Working cfilter download (slows down tests). 2018-05-23 19:38:56 -07:00
Alex 125d47b55c Starting CFilter download work. 2018-05-23 19:38:56 -07:00
Alex dd3e47756b A little cleanup. 2018-05-23 19:38:56 -07:00
Alex 5002268321 cfheaders sync works! 2018-05-23 19:38:56 -07:00
Alex b42c527b1c Fixed some bugs. Still more to fix! 2018-05-23 19:38:56 -07:00
Alex 2b352c966d More debugging/fixes, still not working. 2018-05-23 19:38:56 -07:00
Alex 0bede37c79 More thorough testing. Tests still fail. 2018-05-23 19:38:56 -07:00
Alex be44a3ea88 Fix some issues with cfheaders sync; reorgs still don't work. 2018-05-23 19:38:56 -07:00
Alex 87759a142f CFHeaders sync mostly done but still has some bugs. 2018-05-23 19:38:56 -07:00
Alex 4d82af7f8e Optimize, prepare for eventual sendheaders use, add sanity check 2018-05-23 19:38:56 -07:00
Alex 0a8de495cc Fix reorgs, improve string formatting/errors/logging. 2018-05-23 19:38:56 -07:00
Alex f2aceaf363 Fix more test bugs. One last reorg bug to fix before moving on. 2018-05-23 19:38:56 -07:00
Alex 738d889e3d Possible sync fix - tests pass, but more to do 2018-05-23 19:38:56 -07:00
Alex b7c5bcbf45 More updates on checkpoint, reorg, and sync handling and tests. 2018-05-23 19:38:56 -07:00