Commit Graph

158 Commits

Author SHA1 Message Date
blackjok3r
bf11ecef12 Add segid to getsnapshot 2018-12-11 11:15:17 +08:00
miketout
e48af4a18a Updated db calls in CBlockTree::Snapshot 2018-11-26 18:21:30 -08:00
miketout
c38ce00f9c Fixed address, unspent, and timestamp indexing 2018-11-21 23:33:51 -08:00
miketout
d565e7b73c Eliminate mapBlockIndex risk of nulls across VRSC 2018-10-14 11:59:13 -07:00
miketout
4b729ec577 Changes for most chain power rule 2018-09-28 01:38:14 -07:00
miketout
9feb4b9e08 Major updates integration from all upstreams 2018-09-18 14:33:53 -07:00
Michael Toutonghi
0c8fa56a02 All latest updates, smart contracts, including oracle from KMD/jl777 2018-09-13 13:00:13 -07:00
Sean Bowe
f791ce00eb Always write the empty root down as the best root, since we may roll back. 2018-08-14 15:17:30 -06:00
Jonathan "Duke" Leto
25709e3078 These %lli/%li formats are platform-dependent 2018-08-06 22:50:38 +02:00
Michael Toutonghi
5034d1c134 Sync with latest Komodo changes 2018-08-06 12:52:22 -07:00
Jonathan "Duke" Leto
8e5de27a67 Fix some compile issues on os x 2018-08-05 23:53:07 -07:00
Eirik Ogilvie-Wigley
4fc309f0f5 Rename Merkle Trees to include sprout or sapling 2018-08-01 10:31:09 -06:00
jl777
334687197b Merge pull request #789 from letolabs/snapshot
getsnapshot of top N addresses
2018-07-25 19:43:17 -11:00
Jonathan "Duke" Leto
66d08a3640 Fix compiler error: call of overloaded 'Pair(const char [9], time_t)' is ambiguous 2018-07-25 21:40:31 -07:00
Duke Leto
f1e1ea6133 WIP add 'top N only' feature to gensnapshot rpc 2018-07-23 04:33:47 +00:00
CHMEX
16f2495e19 add RD6GgnrMpPaTSMn8vai6yiGA7mN4QGPVMY Burnaddress
add burnaddress to excuding list
2018-07-20 09:48:34 +02:00
Duke Leto
1aa7af1794 Allow certain addresses to be ignored in snapshot 2018-07-20 05:01:07 +00:00
Duke Leto
70748123a9 Sort addresses by amounts in descending order 2018-07-20 04:40:34 +00:00
Duke Leto
c4a73444de Fix bug where some addresses are lost in sorting by using a vector instead of set and avoiding custom comparison function 2018-07-20 03:58:05 +00:00
Duke Leto
20ba439d05 Add number of utxos to metadata in json response 2018-07-19 05:37:27 +00:00
Duke Leto
a4d41984f6 Modify how we iterate and deal with the end of iteration, since iter->Valid seems to always be true 2018-07-18 19:44:16 +00:00
Duke Leto
3350160a6c Fix bug where finding index entries of other types, such as timestampindex, stopped our iterator 2018-07-18 16:02:53 +00:00
Duke Leto
539080b3a4 Less noise to stderr 2018-07-17 22:33:19 +00:00
Duke Leto
3eb535b8b4 Include start_time+end_time and correctly format amount 2018-07-17 22:31:06 +00:00
Duke Leto
6e74fd2578 In memory sorting, add a few metadata fields; printing small floats correctly still not working 2018-07-17 21:37:52 +00:00
Duke Leto
29a5aa99fd Move address+amount data to addresses key in JSON; add some useful metadata to snapshot response 2018-07-17 19:39:55 +00:00
Duke Leto
92dc28a3c9 Return snapshot info as JSON 2018-07-17 18:42:30 +00:00
Duke Leto
920f960122 Correctly print out snapshot data to stderr for now 2018-07-17 06:05:36 +00:00
Duke Leto
d62d9d7889 Almost working snapshot, we need to sum unspent outputs for each address and return to final snapshot data in json response 2018-07-17 01:40:24 +00:00
Duke Leto
cbce9f1f65 WIP debugging why leveldb iterator is broke 2018-07-14 23:00:09 +00:00
jl777
afd86eb21e Undo 2018-06-12 03:46:42 -11:00
jl777
32748f525e New iterator 2018-06-12 03:38:36 -11:00
jl777
de84abc1b0 Prints 2018-06-12 02:06:11 -11:00
jl777
74db3cd027 SeekToFirst 2018-06-12 02:01:14 -11:00
jl777
67d2e41b3f Test 2018-06-12 00:41:46 -11:00
jl777
bf91fda682 SnapShot -> snapshot 2018-06-12 00:35:59 -11:00
jl777
bd14699824 Syntax 2018-06-12 00:10:37 -11:00
jl777
936078888d int32_t CBlockTreeDB::SnapShot() 2018-06-12 00:04:00 -11:00
Simon
f9840089db Part of #3277. Add comment about deprecated txdb prefixes. 2018-05-23 20:37:34 -07:00
Sean Bowe
3577de83aa Change txdb prefixes for sapling and avoid writing unnecessary information. 2018-05-18 13:26:39 -06:00
Michael Toutonghi
1f722359c1 Verus Proof of Stake Compete with Additional ant-fork protection on block 1 2018-05-13 18:59:06 -07:00
Sean Bowe
8c57bbac15 Fix broken error messages. 2018-05-07 14:37:46 -06:00
Sean Bowe
27616b9a04 Add support for Sapling anchors in coins/txdb. 2018-05-07 14:37:46 -06:00
Sean Bowe
f2c6d214e5 Rename hashSaplingAnchorEnd to hashFinalSaplingRoot to match spec. 2018-05-07 14:37:46 -06:00
Sean Bowe
18322f074c Introduce support for GetBestAnchor(SAPLING). 2018-05-07 13:46:06 -06:00
Sean Bowe
008f4ee8e7 Rename GetAnchorAt to GetSproutAnchorAt. 2018-05-07 13:46:06 -06:00
Sean Bowe
8b8d70cad9 Rename DB_ANCHOR to DB_SPROUT_ANCHOR. 2018-05-07 13:46:06 -06:00
Sean Bowe
691a3fa2e9 Rename hashReserved to hashSaplingAnchorEnd. 2018-05-07 13:46:06 -06:00
Sean Bowe
08f0728884 Rename hashAnchor to hashSproutAnchor. 2018-05-07 13:46:06 -06:00
Sean Bowe
d455828fdc Specifically describe anchors as Sprout anchors. 2018-05-07 13:46:06 -06:00