Commit Graph

700 Commits

Author SHA1 Message Date
bad1fb2552
Updated definition of index.log 2021-05-18 11:02:41 +05:30
5344d9cd5b
Fixed the conditional operator 2021-05-17 16:14:54 +05:30
89c43cd9a7
Fixing the conditional operator 2021-05-17 16:11:11 +05:30
0d4a7e3e42
Modification of condition operator 2021-05-17 16:06:06 +05:30
d689045002
Updated comparison operator 2021-05-17 16:00:27 +05:30
Vivek Teega
1efed08a39 1.0.9 Removing assertions in transction and p2p service 2021-05-17 14:02:31 +05:30
Vivek Teega
56e5cb1f25 1.0.8 Commented out assertion stops 2021-05-17 13:37:19 +05:30
Vivek Teega
453d11c64c 1.0.7 Commented out assertion stops 2021-05-17 12:59:36 +05:30
Vivek Teega
3598c92e0f 1.0.6 Commented out more node.stop() calls
- Commented out all node.stop() calls to prevent the node from exiting under various error conditions
2021-05-13 18:46:20 +05:30
Vivek Teega
0061285204 1.0.5 "return" was missing from lib/services/block/index.js
- Reverted back the previous 2 commits
- Added return to lib/services/block/index.js
2021-05-11 13:21:45 +05:30
Vivek Teega
3b8d992504 1.0.4 FLOsight Error Resolution
Keeping the return as, return next();
2021-05-11 13:11:51 +05:30
Vivek Teega
79fff4051b 1.0.3 FLOsight Error Resolution
Commenting out the part which makes the node
2021-05-11 13:09:50 +05:30
Vivek Teega
c3d32b7ffc FLO Crash Error Resolution 2021-05-10 12:39:02 +05:30
Vivek Teega
861e908080 Change in reorg operation
Reorg operation previously used to nuke 2000 block headers and redownload them from peers upon detecting a fork in the blockchain. Flosight has been crashing a lot because of this. We have updated the number of block headers to nuke to 20000
2021-04-12 15:04:07 +05:30
Sky Young
a7c8cd4563 Revert changes to header service 2020-01-09 12:02:17 -07:00
Sky Young
d8da495b38 Fix Regtest Support! 2020-01-08 16:14:59 -07:00
Sky Young
02cc97b0a1 Pass network to Address.toString() 2019-08-16 09:24:20 -06:00
Sky Young
978679cad7 Pass fcoin Block template 2019-07-24 17:46:08 -06:00
Sky Young
ecf9bbaeea Properly import TX and Block from fcoin 2019-07-22 17:26:54 -06:00
Sky Young
59d6cc0867 Handle shutdown of fcoin 2019-07-19 17:33:19 -06:00
Sky Young
3a2f8d19de Update fcoin 2019-07-19 15:19:59 -06:00
Sky Young
02006ed18c Set the network version of fcoin before importing wallet
https://github.com/oipwg/fcoin/blob/master/docs/Examples/fullnode-and-wallet.js#L2
2018-10-04 12:37:34 -06:00
Sky Young
b139c33726 use self._bcoin 2018-10-04 12:05:27 -06:00
Sky Young
1268b47d85 Startup a bcoin wallet as well 2018-10-04 12:00:57 -06:00
Sky Young
2b0815df6c plugin id is zmq not bzmq 2018-10-04 11:12:33 -06:00
Sky Young
6c6e0ad446 Add bzmq plugin to allow zmq access 2018-10-04 10:30:00 -06:00
Sky Young
06bb34123a Add config: true to fcoin config to allow use of fcoin.conf file in datadir
This is mainly to allow the setting and changing of API keys in a seperate file, in case people want to access
2018-10-03 13:04:34 -06:00
Sky Young
375ee80b5d Make sure it is the initial sync to log Sync Complete
this prevents logging of Sync Complete every time a new block is added
2018-08-27 12:13:00 -07:00
Sky Young
8715aa5071 Small formatting changes 2018-08-27 12:10:09 -07:00
Sky Young
f488a02d2d Fix syncComplete calculations
The _lastHeaderCount would always be 2000 behind upon startup, even if it is synced with the last header, causing no more headers to be synced. This fixes the issue that prevented syncing occasionally after restart.
2018-08-27 12:10:02 -07:00
Sky Young
db11257a43 Update p2p http RPC port 2018-08-06 15:48:13 -07:00
Sky Young
e7ef0db2cb Merge branch 'master' of https://github.com/bitpay/bitcore-node into bitpay-master 2018-08-06 11:12:20 -07:00
Sky Young
b081c0a5f8 Only add tx to cache if it has at least 6 transactions 2018-06-08 15:48:39 -07:00
Sky Young
b1f828bea9 Revert "Update P2P Ports"
This reverts commit 57bc11a592.
2018-05-17 09:53:52 -07:00
Sky Young
dc7eacb112 Update Genesis Info 2018-05-17 09:47:23 -07:00
Sky Young
d45f6aecac Update protocol version 2018-05-17 09:38:20 -07:00
Sky Young
210b2fbcd7 Replace ts with time due to fcoin based on a higher version of lcoin 2018-05-17 09:36:43 -07:00
Sky Young
799675b234 Update printed version to 5.0.0 2018-05-17 09:35:44 -07:00
Sky Young
b9e4c8a6a5 move fcoin to bcoin 2018-05-17 09:35:30 -07:00
Sky Young
57bc11a592 Update P2P Ports 2018-05-17 09:35:18 -07:00
Sky Young
6358953553 Add Flo Ports 2018-05-16 11:03:32 -07:00
Sky Young
fe2e29d74a Rename bcoin to fcoin 2018-05-15 15:04:33 -07:00
Micah Riggan
eb637d3125
Adding rpc for broadcastRawTransaction 2018-05-10 16:32:08 -04:00
Sky Young
17a4e0f0cc Use fcoin instead of bcoin 2018-05-08 13:48:43 -07:00
Matias Alejo Garcia
34f31ac57d
Revert "Revert "add txIdList cache"" 2018-04-12 14:41:18 -03:00
Matias Alejo Garcia
bf8f25d9eb
Revert "add txIdList cache" 2018-04-12 12:30:09 -03:00
Matias Alejo Garcia
ddda913ccd add txIdList cache 2018-02-12 00:48:30 -03:00
Matias Alejo Garcia
0c24271833 change order to 'desc' 2018-02-11 19:47:52 -03:00
Matias Alejo Garcia
01a3df31c8 fix history sorting when paging results 2018-02-11 15:44:39 -03:00
OstlerDev
4a9658184a btc -> flo 2018-01-15 16:43:07 -08:00
Chris Kleeschulte
0e421de897
Fixed spent status from getAddressHistory. 2017-11-22 15:56:36 -05:00
Chris Kleeschulte
18a52c214d
Added a reorg to block. 2017-11-09 21:53:37 -05:00
Chris Kleeschulte
bde062e744
wip on changing subscriptions endpoints. 2017-11-09 11:45:00 -05:00
Chris Kleeschulte
b138a558ae
Merge branch 'master' of github.com:kleetus/bitcore-node 2017-11-08 19:04:10 -05:00
Chris Kleeschulte
9bdd2aa86d
Fixed sorting and filtering problem. 2017-11-08 19:01:13 -05:00
Chris Kleeschulte
af23a8c6e2
Removed console.log 2017-11-08 09:37:25 -05:00
Chris Kleeschulte
9a00622de4
Fixed getAddressHistory. 2017-11-07 21:37:54 -05:00
Chris Kleeschulte
9a1f1db523
Fixed ordering of txs. 2017-11-07 15:36:38 -05:00
Chris Kleeschulte
6b8129fdb3
Fixed getAddressHistory. 2017-11-07 00:30:26 -05:00
Chris Kleeschulte
c2117146c1
Fixed where next is being called. 2017-11-06 19:32:00 -05:00
Chris Kleeschulte
b1fe37c260
Fixed missed call to next. 2017-11-06 19:08:35 -05:00
Chris Kleeschulte
74d3c0212b
Improved getAddressHistory. 2017-11-05 18:14:19 -05:00
Chris Kleeschulte
d55986be57
Fixed tests. 2017-11-05 07:57:27 -05:00
Chris Kleeschulte
00a5ea65b4
Removed unneeded indexes. 2017-11-04 17:47:29 -04:00
Chris Kleeschulte
765b7288a7
wip on fix for txs list. 2017-11-03 18:23:42 -04:00
Chris Kleeschulte
a63761d0b2
Fixed call to map series. 2017-11-02 17:41:50 -04:00
Chris Kleeschulte
b9887492bf
Removed retrieving the mempool right after sync. Need to re-think this. 2017-11-02 13:46:26 -04:00
Chris Kleeschulte
725b58cd15
Fixed finding txs after sending. 2017-11-02 11:59:06 -04:00
Chris Kleeschulte
baf75b2d60
Fixed confirmations. 2017-11-01 16:00:39 -04:00
Chris Kleeschulte
bc8dee5810
Fixed waiting for blocks to finish processing before processing a reorg. 2017-10-30 15:30:01 -04:00
Chris Kleeschulte
5e1e67d4e6
Fixed variable initialization. 2017-10-26 17:50:41 -04:00
Chris Kleeschulte
0a4e0dd9fd
Fixed tests and repaired reorg logic. 2017-10-26 15:35:01 -04:00
Chris Kleeschulte
299b905d5b
wip on reorg changes. 2017-10-26 09:59:39 -04:00
Chris Kleeschulte
2478795213
Disable mempool until system is synchronized. 2017-10-25 15:17:11 -04:00
Chris Kleeschulte
ad650c383e
Added a block cache to speed up syncing. 2017-10-24 17:46:34 -04:00
Chris Kleeschulte
99adf07290
Chnaged reorg to use cache hashes. 2017-10-24 14:25:34 -04:00
Chris Kleeschulte
4f46947516
Fixed tx api call. 2017-10-20 10:04:33 -04:00
Chris Kleeschulte
9f4ebfb1f9
Fixed mempool search by address. 2017-10-20 07:56:48 -04:00
Chris Kleeschulte
b129bc1048
WIP 2017-10-19 19:32:20 -04:00
Chris Kleeschulte
f90e0d2ed5
Removed header interval. 2017-10-19 15:05:38 -04:00
Chris Kleeschulte
98be272925
Added new index for spent txs. 2017-10-18 19:03:04 -04:00
Chris Kleeschulte
5a5dbb624c
Adding in spent status. 2017-10-17 19:39:14 -04:00
Chris Kleeschulte
880f98e669
Fixed pagination for getAddressHistory. 2017-10-17 17:46:11 -04:00
Chris Kleeschulte
0dc69d87af
Added noTxList suppert for getAddressSumaary. 2017-10-17 14:41:54 -04:00
Chris Kleeschulte
22678e3838
Added tx cache. 2017-10-17 14:24:12 -04:00
Chris Kleeschulte
e15695cfa6
Fixed get utxos to retrieve mempool txs. 2017-10-12 17:53:24 -04:00
Chris Kleeschulte
1af9c07bfa
Fixed issue with query mempool option. 2017-10-12 15:06:13 -04:00
Chris Kleeschulte
93db6790e2
Repairs to getAddressSummary. 2017-10-11 16:38:28 -04:00
Chris Kleeschulte
7da189acf9
Added warning about re-querying for sync blocks. 2017-10-10 14:10:21 -04:00
Chris Kleeschulte
316ce66c87
Fixing reorg. 2017-10-10 10:55:20 -04:00
Chris Kleeschulte
5007104a4f
Fixed mempool gathering. 2017-10-09 16:24:25 -04:00
Chris Kleeschulte
fba71ee1aa
Fixed get raw tx calls that failed when input values were also in
mempool.
2017-10-09 13:37:10 -04:00
Chris Kleeschulte
ce653b5a12
Fixed getting txs from memory pool from calls to getAddressHistory. 2017-10-08 14:15:01 -04:00
Chris Kleeschulte
f10106f9a0
Added sort options to get address history. 2017-10-07 15:48:11 -04:00
Chris Kleeschulte
1d7c998468
Part deux. 2017-10-07 15:36:44 -04:00
Chris Kleeschulte
0007848c07
Fixed logging timing issue. 2017-10-07 15:22:28 -04:00
Chris Kleeschulte
aa6570d23a
Fixed issue with missing header on log entry. 2017-10-07 14:18:14 -04:00
Chris Kleeschulte
d7fb9e9c27
Fixed tests. 2017-10-06 15:22:14 -04:00
Chris Kleeschulte
7c392e9c94
Added locating double spend txs. 2017-10-06 10:30:26 -04:00
Chris Kleeschulte
1e04e08411
Added search memory pool for txs with certain addresses. 2017-10-06 10:02:38 -04:00
Chris Kleeschulte
c7c268f00a
Adding search mempool by address. 2017-10-05 16:18:16 -04:00
Chris Kleeschulte
67ce58d698
Fixed logging issues. 2017-10-04 18:30:22 -04:00
Chris Kleeschulte
1f4c5e5e1f
Fixing recently sent items. 2017-10-04 08:34:52 -04:00
Chris Kleeschulte
b8bc017136
Fixed reorg where we don't have all the previous blocks. 2017-10-02 10:13:33 -04:00
Chris Kleeschulte
ffa63fc146
Added reorg fixes. 2017-10-01 19:15:20 -04:00
Chris Kleeschulte
8360336ad2
Fixed start up of block service. 2017-09-28 22:01:14 -04:00
Chris Kleeschulte
f47b43754c
Fixed reorg. 2017-09-28 19:25:58 -04:00
Chris Kleeschulte
09b365772c
more reorg stuff. 2017-09-28 11:01:57 -04:00
Chris Kleeschulte
74542a3e7f
Changed to a more traditional reorg detection. 2017-09-27 14:06:36 -04:00
Chris Kleeschulte
0c75879084 Fixed for getDetailedTransaction. 2017-09-27 10:21:52 -04:00
Chris Kleeschulte
2a1af1e93f Merge pull request #523 from nitsujlangston/gentlerDbClose
wait for db to gracefully close before stopping db service
2017-09-27 10:08:56 -04:00
Justin Langston
2dc0764950
stop db service if/when closed 2017-09-26 20:54:36 -04:00
Chris Kleeschulte
2726c7eb86
Fixed a few routes. 2017-09-26 19:40:25 -04:00
Chris Kleeschulte
ee97cb5b12
Added fixes for reorg and added time since last block. 2017-09-26 11:05:24 -04:00
Chris Kleeschulte
f5ad8b89fb
Added next hash support in header service. 2017-09-25 21:21:05 -04:00
Chris Kleeschulte
b8e73ae238
Fixed sanity check when block height is zero. 2017-09-25 15:45:15 -04:00
Chris Kleeschulte
3383771b10
Added better reporting when new blocks come in. 2017-09-25 14:51:33 -04:00
Chris Kleeschulte
dcf1426221
Added a reset tip routine. 2017-09-25 14:31:07 -04:00
Chris Kleeschulte
a5f9d1a6d0
Fixed edge case reorg issues. 2017-09-24 12:34:27 -04:00
Chris Kleeschulte
b160814706
Clean up. 2017-09-22 14:16:02 -04:00
Chris Kleeschulte
a1db879fdc
Fixed tests. 2017-09-22 13:31:52 -04:00
Chris Kleeschulte
ada997c8bd
Added reorg test. 2017-09-21 17:05:09 -04:00
Chris Kleeschulte
d5e5904329
Added more checks. 2017-09-19 11:03:39 -04:00
Chris Kleeschulte
66e82a3fe7
Fixed edge case where new peer has unexpectedly low number of blocks. 2017-09-19 08:48:49 -04:00
Chris Kleeschulte
de163ad4c9
Fixed issues with reorg again. 2017-09-14 10:10:07 -04:00
Chris Kleeschulte
7350fb3bf6
Fixed reorg edge case scenario. 2017-09-13 11:02:48 -04:00
Chris Kleeschulte
6a18c1e46e
Fixed issue with reorg. 2017-09-11 15:41:27 -04:00
Chris Kleeschulte
82dd1dfe3f
Fixed reorging. 2017-09-08 14:18:55 -04:00
Chris Kleeschulte
02ff6c680c
Fixed sync resume (memory issues).
Input values on tx index are no longer lazy loaded.
2017-09-07 18:55:33 -04:00
Chris Kleeschulte
3dd9aea3dd
Fixed issue where new blocks were not indexed by header service. 2017-09-01 15:57:03 -04:00
Chris Kleeschulte
99d8a6f7ae
Usability upgrades:
- node will start services prior to bcoin becoming synchronized
- resume after peer disconnection and reconnection
- error message when using non-supported versions of nodeJS.
2017-08-31 15:26:59 -04:00
Chris Kleeschulte
a0031c7e00
Upgrades
- Updated to latest bcoin
- Gave the db a bit more time to shutdown
- Fixed resume functionality if peer disconnects and reconnects later
2017-08-30 18:21:51 -04:00
Chris Kleeschulte
4bd3a06edc
Fixed block sync where blocks come in all at once. 2017-08-29 16:01:11 -04:00
Chris Kleeschulte
7a8bae64a4
wip 2017-08-28 20:05:00 -04:00
Chris Kleeschulte
4ebb7ac569
Added 'listenAddr' to p2p options. 2017-08-28 15:14:52 -04:00
Chris Kleeschulte
69f239a58b
Added regtests for block, tx. 2017-08-25 17:34:20 -04:00
Chris Kleeschulte
f0360a78a0
Fixed a problem with address balances. 2017-08-25 10:36:00 -04:00
Chris Kleeschulte
678cb83d61 Fixed tests for altered getAddressHistory and getAddressSummary calls. 2017-08-24 09:50:29 -04:00
Chris Kleeschulte
fc6ee8e193 Fixed README for this release. 2017-08-21 11:28:45 -04:00
Chris Kleeschulte
a14de13e49 Removed routes.txt 2017-08-18 17:51:47 -04:00
Chris Kleeschulte
be97b3407f Fixed isSynced. 2017-08-18 20:18:00 +00:00
Chris Kleeschulte
5785d46258 Removed symlink. 2017-08-18 15:23:36 -04:00
Chris Kleeschulte
1a5e25d4c1 Fixed a problem were I was indexing the wrong output value. 2017-08-18 14:24:03 -04:00
Chris Kleeschulte
6c8d8e437b Added isSynced. 2017-08-18 12:54:13 -04:00
Chris Kleeschulte
2fa6b5c314 Fixed tests. 2017-08-18 10:48:54 -04:00
Chris Kleeschulte
b4b040addd Removed symlink. 2017-08-17 21:57:24 -04:00
Chris Kleeschulte
f1da1e7612 Fixed reorg tests. 2017-08-17 21:12:33 -04:00
Chris Kleeschulte
07b1ff3111 Added regtest reorg tests, 2017-08-17 19:38:06 -04:00
Chris Kleeschulte
11c9aa022f Fixed issue with mempool transactions. 2017-08-15 21:37:29 -04:00
Chris Kleeschulte
d7169ff639 Get transaction fixes. 2017-08-15 19:38:19 -04:00