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
Braydon Fuller
efb2551555
indexer: fix reset and reorg handling
2019-05-15 12:11:37 -07:00
Javed Khan
9f86dbca28
chaindb: bump to v6
2019-05-15 12:02:49 -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
3457ccc91b
blockchain: remove blocks after commit
2019-04-08 13:24:54 -07:00
Braydon Fuller
bdcb392a9c
blockchain: do not check blockstore with spv
2019-04-08 13:18:56 -07:00
Braydon Fuller
d1e747cf2f
blockstore: minor, update comments and docs
2019-04-08 13:18:55 -07:00
Braydon Fuller
8b6ec89a64
blockchain: use blockstore for undo coins
2019-04-08 13:18:55 -07:00
Braydon Fuller
0b0dd58a91
node: add blockstore to full node
2019-04-08 13:18:54 -07:00
Javed Khan
6be21203af
blockchain: integrate blockstore into chaindb
2019-04-08 13:18:53 -07:00
Braydon Fuller
392b3836fc
Merge pull request #715 from pinheadmz/inspect
...
Use custom `inspect` for all objects to avoid deprecation warning
2019-04-05 09:41:24 -07:00
Braydon Fuller
a9ebeb3871
blockchain: remove coin cache
2019-03-21 15:15:51 -07:00
Matthew Zipkin
df4e287817
utils: custom inspect for objects
2019-03-11 14:28:45 -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
Javed Khan
9a22976631
multi: fix lint warnings
2018-08-13 17:30:30 +05:30
Christopher Jeffrey
f10d7b8363
pkg: remove bn.js dependency.
2018-08-10 16:33:38 -07:00
Christopher Jeffrey
a0ac953079
bcoin: update logger usage.
2018-08-10 16:24:10 -07:00
Christopher Jeffrey
9ee3854828
bdb: upgrade bdb usage for keys.
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
Sky Young
242fb759e6
Split value into wholeCoin and Satoshis when serialized & recombine on deserialization
2018-05-10 13:54:01 -07:00
Christopher Jeffrey
c388498ab0
pkg: update deps.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
f1672a8b86
types: cleanup types.
2018-03-29 21:56:53 -07:00
Christopher Jeffrey
c63e977ccf
chaindb: minor.
2018-03-29 21:56:52 -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
cb978df380
db: drop old migrations. avoid using encoding.
2018-03-29 21:56:51 -07:00
Christopher Jeffrey
83e1de2e98
db: stop relying on encoding.
2018-03-29 21:56:51 -07:00