Commit 660e4ea
authored
[PSL-1180] pasteld: check & add missing insightexplorer code (#254)
* [PSL-1180] pasteld: check & add missing insightexplorer code
pasteld v2.3.1-beta1
- moved all insightexplorer code and adapted to pasteld:
- mempool: add memory address & spent indices
- mempool: remove address & spend indices from internal maps when transaction is removed from mempool
- mempool: updated memory DynamicUsage for insight-related structures
- ConnectBlock: collect info for insightexplorer indices from vin/vout transactions in a block,
add/update indices in txdb
- DisconnectBlock: collect info for insightexplorer indices from transactions in a block and
erase from txdb
- add/update/delete indices from txdb (address,spend and timestamp indices)
- refactored checks for txdb/cmdline options mismatches for fTxIndex, fInsightExplorer flags
- refactored serialization/deserialization for address,spent,timestamp indices storage in txdb
- refactored logging for LevelDB create/open operations
- removed static from constexpr declared outside classes/namespaces
- moved experimental features initialization to the separate file, removed requirement for
"experimentalfeatures" option to enable insightexplorer
- added new python tests for insightexplorer: addressindex.py, spentindex.py, timestampindex.py
- added new insightexplorer RPC APIs:
- getblockdeltas blockhash
Returns the txid and index where an output is spent
- getblockhashes high low ( {"noOrphans": true|false, "logicalTimes": true|false}
Returns array of hashes of blocks within the timestamp range provided, greater or equal to low, less than high.
- getaddressmempool {addresses: [taddr, ...]}
Returns all mempool deltas for an address.
- getaddresstxids {"addresses": ["taddr", ...], ("start": n), ("end": n)}
Returns the transaction ids for given transparent addresses within the given (inclusive) block height range, default is the full blockchain.
- getaddressbalance {"addresses": ["taddr", ...]}
Returns the balance for addresses.
- getaddressdeltas {"addresses": ["taddr", ...], ("start": n), ("end": n), ("chainInfo": true|false)}
Returns all changes for an address. Returns information about all changes to the given transparent addresses within the given (inclusive) block height range, default is the full blockchain.
- getaddressutxos {"addresses": ["taddr", ...], ("chainInfo": true|false)}
Returns all unspent outputs for an address.
- getspentinfo {"txid": "txid", "index": n}
Returns the txid and index where an output is spent.
- refactored getting/validating start/end height RPC parameters
- added google tests for insightexplorer RPC APIs calls (validate parameters, API disabled messages)
* fixes
* fixes
* fixes1 parent c98e305 commit 660e4ea
File tree
153 files changed
+4167
-1696
lines changed- build-aux/vs2022
- libbitcoin_common
- libbitcoin_server
- libbitcoin_util
- libbitcoin_zmq
- settings
- qa
- pull-tester
- rpc-tests
- test_framework
- src
- crypto
- gtest
- leveldb/include/leveldb
- mining
- pow/tromp
- mnode
- rpc
- tickets
- netmsg
- policy
- rpc
- script
- sigslot
- txdb
- univalue
- include
- lib
- utils
- wallet
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
153 files changed
+4167
-1696
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
| |||
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
123 | | - | |
124 | 122 | | |
125 | 123 | | |
126 | 124 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
102 | 99 | | |
103 | 100 | | |
104 | 101 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | 102 | | |
109 | 103 | | |
110 | 104 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
198 | | - | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| |||
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
322 | 324 | | |
323 | 325 | | |
324 | 326 | | |
325 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
326 | 331 | | |
327 | 332 | | |
328 | 333 | | |
| |||
Lines changed: 24 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
370 | 376 | | |
371 | 377 | | |
372 | 378 | | |
| |||
429 | 435 | | |
430 | 436 | | |
431 | 437 | | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | 438 | | |
436 | 439 | | |
437 | 440 | | |
| |||
753 | 756 | | |
754 | 757 | | |
755 | 758 | | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
756 | 774 | | |
757 | 775 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
136 | 137 | | |
137 | 138 | | |
138 | 139 | | |
| 140 | + | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| |||
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
237 | 243 | | |
238 | 244 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
2 | 6 | | |
3 | | - | |
4 | | - | |
5 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
0 commit comments