ohryan
5321251db3
set competitor chain tip to invaild
...
setting the competitor chain tip to invaild fixes the problem where the chain continues to sync after nlr. main chain will no longer sync with competitor after nlr
2020-07-21 14:01:48 -07:00
ohryan
83a11fbcb2
setInvalid instead of invalidate + strictEqual assert
...
instead of running this.invalidate which deadlocks the chain, set the hash to invalid manually with this.setInvalid.
update assertion to use strict equal
2020-07-20 17:43:34 -07:00
ohryan
36671d02ed
pull loop variable outside for reassignment
2020-07-17 20:03:07 -07:00
ohryan
c6317a268d
update invalidation stepping to use just the while loop and add missing await to assert check
2020-07-16 19:20:49 -07:00
ohryan
11534032f4
fix/update logger warning and fix incorrect assert usage
2020-07-16 19:07:39 -07:00
ohryan
9f9c536efc
add missing awaits
2020-07-16 08:31:10 -07:00
ohryan
7a1816a3a8
refactor/update nlr function; check nlr for spv wallet
2020-07-15 19:07:25 -07:00
ohryan
430276b592
add nlr check to reorganize function
2020-07-15 17:45:56 -07:00
Sky Young
2caeac559a
Fix Difficulty Retargeting
2019-07-18 12:08:33 -06:00
Sky Young
c670ef2ed2
Fix things that were not merged properly
2019-07-15 16:18:46 -06:00
Sky Young
153da80920
Merge remote-tracking branch 'bcoin/master' into bcoin-1.0.2
2019-07-15 15:42:15 -06:00
HiddenMan
0551096c0a
blockchain: fix spelling error
2019-05-31 12:52:41 -07:00
Braydon Fuller
662a68cf10
blockchain: cleanup deprecated methods
...
Deprecation details are in CHANGELOG.md
2019-05-15 12:11:37 -07:00
Braydon Fuller
cede31d86f
indexer: cleanup and check pruned and index options
2019-05-15 12:11:37 -07:00
Javed Khan
05794f5cb3
indexer: add module indexer
...
module indexer introduces a extensible architecture for indexing the
chain. It provides a base class which handles syncing with the chain,
handling re-orgs, interruptions, dynamic toggling, etc. TXIndexer
and AddrIndexer are provided for indexing transactions and addresses,
using the same flags as before i.e --index-tx and --index-address.
Indexes are stored in a different database and can be maintained
independently of the chain.
2019-05-15 12:02:41 -07:00
Javed Khan
4bc0bb2366
chain: add fee overflow test; rename error
2019-05-07 03:27:42 +05:30
Braydon Fuller
b68207610c
blockchain: do not accept forked chain older than last checkpoint
...
This has been patched in both bitcoind and btcd around February 20th, 2014. It was
shortly followed by a headers-first synchronization of blocks.
- d8b4b49667
- 50b6e10b57
2019-05-02 14:44:10 -07:00
Braydon Fuller
bdcb392a9c
blockchain: do not check blockstore with spv
2019-04-08 13:18:56 -07:00
Braydon Fuller
0b0dd58a91
node: add blockstore to full node
2019-04-08 13:18:54 -07:00
Braydon Fuller
a9ebeb3871
blockchain: remove coin cache
2019-03-21 15:15:51 -07:00
Braydon Fuller
fa877503a4
blockchain: enable segwit for regtest
2019-01-31 13:03:59 -08:00
Mark Tyneway
b10aea8f3d
bugfix: regtest segwit start time 0
...
The deployments are written to and read
from a database and the start time is
a U32. Changing the value to -1 will cause
the value to be read incorrectly and cause
the tests to fail.
2019-01-28 15:31:59 -08:00
Javed Khan
53a09b0a02
networks: always activate segwit for regtest
2019-01-28 15:31:57 -08:00
Christopher Jeffrey
a0ac953079
bcoin: update logger usage.
2018-08-10 16:24:10 -07:00
Christopher Jeffrey
a45e683eb2
bcoin: switch to bsert for everything.
2018-08-10 16:23:46 -07:00
Christopher Jeffrey
b92839c82a
bcoin: use buffer-map. see #533 .
2018-08-10 16:23:46 -07:00
Christopher Jeffrey
cfeacb309e
chain: mark historical bad merkle block as mutable.
2018-07-12 10:17:13 -07:00
Christopher Jeffrey
22830cf6f3
chain: earlier sanity checks.
2018-07-12 10:16:58 -07:00
Sky Young
2c0482a7be
Testnet has a block that has an issue with this
2018-05-21 13:09:50 -07:00
Sky Young
f6aaf70c3d
Add support for all 3 difficulty calculation algorithms
2018-05-21 13:08:47 -07:00
Sky Young
c9d676efb4
Update Difficulty Calculations
2018-05-14 16:38:03 -07:00
Christopher Jeffrey
c388498ab0
pkg: update deps.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
417b37b0c3
db: remove backend option.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
bad028ab67
chaindb: refactor.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
dbde501444
db: use bdb key object.
2018-03-29 21:56:50 -07:00
Christopher Jeffrey
3c82ac0486
bcoin: use util.revHex again.
2018-03-29 21:56:49 -07:00
Christopher Jeffrey
21ab415769
refactor: switch to bio module.
2018-03-29 21:56:48 -07:00
Christopher Jeffrey
6a5d5c1e48
chain: no return await.
2018-03-29 21:56:48 -07:00
Christopher Jeffrey
ca08d6d97e
bcoin: rename bufio and bstring.
2018-03-29 21:56:48 -07:00
Christopher Jeffrey
73892701e8
utils: switch to bevent.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
4535cd1827
utils: start using bmutex.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
a79c2b0b1a
bcoin: start switching to class syntax.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
8332b93721
utils: remove dependence on co.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
424370bc1f
utils: stop using asyncobject.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
401829db5a
node: start using blgr and bcfg.
2018-03-29 21:56:47 -07:00
Christopher Jeffrey
41925d495c
utils: start using bbuf.
2018-03-29 21:56:46 -07:00
Christopher Jeffrey
658d3db928
encoding: refactor. remove bip70.
2018-03-29 21:56:46 -07:00
Christopher Jeffrey
749d4edc11
wallet: fixes for wallet server.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
d0ed214067
bcoin: remove dependence on util.js.
2018-03-29 21:56:45 -07:00
Christopher Jeffrey
abcf48cbe9
wallet: update rpc calls for getHashes.
2018-03-29 21:56:43 -07:00