Sky Young
5a300e785f
Allow low fees
...
This commit basically disables the fee estimation logic. Currently this is not needed as tx traffic on FLO is relatively minor
2019-07-19 11:43:36 -06:00
Sky Young
bad3388cab
Allow up to 101000 blocks to be batch requested
2019-07-19 11:42:45 -06:00
Sky Young
f73c9d2320
Add new checkpoints for Mainnet and Testnet
2019-07-18 12:09:24 -06:00
Sky Young
2caeac559a
Fix Difficulty Retargeting
2019-07-18 12:08:33 -06:00
Sky Young
28dca48cd7
Merge branch 'master' into bcoin-1.0.2
2019-07-15 16:53:15 -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
Braydon Fuller
fed7f2997b
Merge pull request #789 from bucko13/indexer-listeners
...
add ability to track listeners and remove them on close for indexer
2019-07-03 09:26:39 -07:00
Buck Perley
f4b74003c4
indexer: add ability to track listeners and remove them on close for indexer
2019-07-03 10:55:20 -05:00
Buck Perley
b14cd52070
indexer: move hasRaw check to txindexer
2019-07-03 10:51:08 -05:00
Braydon Fuller
f00985fefb
node: consistent rpc error messages
2019-06-05 12:11:52 -07:00
Braydon Fuller
400d578716
indexer: fix error message
2019-06-05 11:59:28 -07:00
HiddenMan
0551096c0a
blockchain: fix spelling error
2019-05-31 12:52:41 -07:00
Braydon Fuller
87aaebc8e7
node: use the same memory option
2019-05-31 12:16:15 -07:00
Braydon Fuller
4f76cfe3b9
test: add net peer handler tests
2019-05-24 17:58:26 -07:00
Braydon Fuller
9db43a7e1f
test: add net packet, framer and common tests
2019-05-24 17:58:25 -07:00
Nodar Chkuaselidze
cdca51a844
addrindexer: minor.
...
* allocate one buffer istead of concat.
* return results instead of mutating array.
2019-05-17 21:04:52 +04:00
Nodar Chkuaselidze
0f6ef910b0
addrindexer: use network for getPrefix.
2019-05-17 21:04:47 +04:00
Braydon Fuller
7e9d00a665
node: pass options from getTXByAddress to getMetaByAddress
2019-05-16 10:26:54 -07:00
Braydon Fuller
34e8f22b9b
indexer: update and fix documentation
2019-05-16 10:25:58 -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
ce16bc9239
node: simplify index-prefix option
2019-05-15 12:11:37 -07:00
Braydon Fuller
ed06c2184d
indexer: check that blocks are connected
...
There was a rare case that a block could be incorrectly added to
the indexer if the indexer was disabled during a reorg to a height
that matched the height that was expected, and the `sync` method
for the indexer wasn't called that would detect the reorg.
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
5d18f9ba2e
indexer: index the genesis block
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
Braydon Fuller
b4be8574e5
test: improve addrindex tests
...
- Vectors for p2wsh and p2sh.
- Edge case for witness program.
- Improve determinism by not comparing mtime.
- Various edge and error cases.
2019-05-15 12:11:32 -07:00
Braydon Fuller
69e9844f82
test: cleanup and add txindex tests
2019-05-15 12:11:05 -07:00
Braydon Fuller
fae647b9e9
indexer: simplify block meta and remove records
2019-05-15 12:11:05 -07:00
Braydon Fuller
bb797602e6
node: add http indexer info
2019-05-15 12:11:05 -07:00
Braydon Fuller
bd26dbf32d
mempool: update for addrindex
2019-05-15 12:11:05 -07:00
Braydon Fuller
4c8f11ed34
node: update http for addrindex
2019-05-15 12:11:05 -07:00
Braydon Fuller
06ef0e3615
indexer: simplify addrindex query
2019-05-15 12:11:05 -07:00
Braydon Fuller
ebc40a58d0
indexer: trim disk usage for tx and addr indexes
2019-05-15 12:11:01 -07:00
Braydon Fuller
93c6ff845e
indexer: fix, simplify and rewrite indexer base
...
- Write indexer state and index atomically.
- Simplify chain state with current height.
- Roll forward to best height.
- Synchronize the index with the chain with common method `sync` for
the events 'connect', 'disconnect' and 'reset'. This will prevent
any of the events from conflicting with each other.
- Fix the chain rollback and reset.
- Make sure blocks are connected in the correct order.
- Improve logging to log similar to chain.
2019-05-15 12:02:50 -07:00
Javed Khan
e2a6a92ebc
addrindexer: index by address prefix
2019-05-15 12:02:50 -07:00
Javed Khan
9f86dbca28
chaindb: bump to v6
2019-05-15 12:02:49 -07:00
Braydon Fuller
7dc55c9c3c
indexer: remove address coin index
2019-05-15 12:02:48 -07:00
Braydon Fuller
05d55efb22
indexer: fix memory and cpu exhaustion for addrindex
2019-05-15 12:02:48 -07:00
Braydon Fuller
8bff122253
indexer: use chain and blocks for indexer, remove chain client
2019-05-15 12:02:47 -07:00
Braydon Fuller
f9aab08c46
indexer: add block position to tx
2019-05-15 12:02:47 -07:00
Javed Khan
9f89c79bd7
indexer: work with blockstore
2019-05-15 12:02:47 -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
Braydon Fuller
81b840a634
Merge pull request #769 from braydonf/wallet-tx-conflict
...
wallet: handle multiple conflicting inputs
2019-05-14 22:56:29 -07:00
Braydon Fuller
eba7bbeddc
wallet: handle multiple conflicting inputs
2019-05-14 14:29:41 -07:00
Orfeas Stefanos Thyfronitis Litos
07f7338503
Replace 285 with 293 in blockstore README ( #767 )
...
* Replace 285 with 293 in blockstore README
* Mention block size after boundaries
2019-05-12 17:55:48 +05:30
Javed Khan
4bc0bb2366
chain: add fee overflow test; rename error
2019-05-07 03:27:42 +05:30
Javed Khan
812dc1a6f3
Merge pull request #764 from braydonf/checkpoint
...
blockchain: do not accept forked chain older than last checkpoint
2019-05-07 00:23:19 +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
kilpatty
d5514d9dcb
node-http: add check for height being below tip
...
This commit simply adds an enforce line to check that the height being
requested to reset to is below the chain tip. This way we return a bad
request error rather than a internal server error.
2019-04-30 21:43:48 -05:00