Commit Graph

612 Commits

Author SHA1 Message Date
Braydon Fuller ededdf1413 rpc: add input confirmations to getrawtransaction 2018-09-05 13:05:49 -07:00
Braydon Fuller 6e50c56edd main: spentindex for the mempool
Zcash: Adapted to older mempool code
2018-09-05 13:05:49 -07:00
Braydon Fuller fc5d4a55fe rpc: add input value and address to getrawtransaction if spentindex enabled 2018-09-05 13:05:49 -07:00
Braydon Fuller 0e20c872b2 rpc: include satoshis in verbose raw transaction 2018-09-05 13:05:49 -07:00
Braydon Fuller 8376b90c6e rpc: add blockindex to getaddressdeltas method
for the purposes of secondary sorting by block order
2018-09-05 13:05:49 -07:00
Wladimir J. van der Laan 0713229fc9 tests: Make proxy_test work on travis servers without IPv6
Github-Pull: #7489
Rebased-From: 7539f1aae3b41279dc5d49e09f448a78a071e114
Cherry-picked-From: 9ca957bcd401de69c4c03904b9ee8b8b41052905
2018-09-05 13:05:49 -07:00
Braydon Fuller 29495b5e25 rpc: optional "start" and "end" params for getaddressdeltas 2018-09-05 13:03:35 -07:00
Braydon Fuller bc628e6e56 rpc: include base58check encoded address in results 2018-09-05 13:03:33 -07:00
Braydon Fuller 7175beebba test: test for getaddressmempool prevhash and prevout values 2018-09-05 12:58:14 -07:00
Braydon Fuller ca0ee59d6e rpc: fix issue with querying txids by block heights 2018-09-05 12:58:14 -07:00
Braydon Fuller 4c4b882bb3 rpc: query txids for addresses within block height range 2018-09-05 12:58:14 -07:00
Braydon Fuller a14b90dbbb rpc: include height in spentinfo 2018-09-05 12:58:14 -07:00
Braydon Fuller a9e36d08a0 rpc: include spent info if spentindex enabled with getrawtransaction verbose 2018-09-05 12:58:14 -07:00
Braydon Fuller bf64e834c6 main: add spentindex option 2018-09-05 12:58:12 -07:00
Braydon Fuller 2f8d20ba76 main: mempool address index
Zcash: Integrated into older mempool code
2018-09-05 12:56:26 -07:00
Braydon Fuller e85d165115 main: sort address index utxos by height 2018-09-05 12:55:33 -07:00
Braydon Fuller 110adc6aa7 main: remove spent address utxo indexes 2018-09-05 12:55:33 -07:00
Braydon Fuller 4725b25e60 main: update unspent address index during reorgs 2018-09-05 12:55:33 -07:00
Braydon Fuller 724f06da7c main: index unspent outputs by address 2018-09-05 12:55:30 -07:00
Braydon Fuller 230783d4b3 main: update address index during reorgs 2018-09-05 12:53:00 -07:00
Braydon Fuller 98872dac95 main: get address deltas between range of block heights 2018-09-05 12:52:56 -07:00
Braydon Fuller 70600ae1ff main: fixed bug with overlapping address index keys
There was a bug where the spending address index could have the same key
as the receiving address index if the input and output indexes matched. This lead
to the output always overwriting the input index leading to incorrect balances
with missing spent amounts. This patch separates the two so that they have unique
keys so balances will be correctly calculated.
2018-09-05 12:51:27 -07:00
Braydon Fuller 3d90427d0b test: added to for balance after spending 2018-09-05 12:51:27 -07:00
Braydon Fuller 4fcfdc9b21 main: add block timestamp index 2018-09-05 12:51:25 -07:00
Braydon Fuller d2e961bd94 rpc: added getaddressbalance method using addressindex 2018-09-05 12:49:17 -07:00
Braydon Fuller 3938fe37f3 rpc: sort txids by height for multiple addresses 2018-09-05 12:47:10 -07:00
Braydon Fuller 73858d5450 rpc: query for multiple addresses txids 2018-09-05 12:47:10 -07:00
Braydon Fuller fd09de01f0 rpc: update getaddresstxids for uniqueness 2018-09-05 12:47:10 -07:00
Braydon Fuller 098c127ae6 rpc: fix issue for querying txids for p2sh addresses 2018-09-05 12:47:08 -07:00
Braydon Fuller a9948959b5 main: index address index sorted by height 2018-09-05 12:45:35 -07:00
Braydon Fuller ffa949e98a qa: started test for addressindex rpc getaddresstxids 2018-09-05 12:45:35 -07:00
Jack Grigg af04224522
Fix file permissions of wallet_sapling RPC test 2018-09-03 08:27:33 +01:00
Jack Grigg 0f436a0a26
Fix RPC test that checks exact wording of cleaned-up error message 2018-09-03 08:23:09 +01:00
Jack Grigg e54c4d2ca1
rpcwallet: Add Sapling support to z_sendmany 2018-08-27 11:36:14 +01:00
Homu 622751da12 Auto merge of #3444 - LarryRuane:2982-mininode-version, r=str4d
generalize mininode.py protocol versioning

Fixes #2982 -- replace `overwintered` boolean argument to NodeConn constructor with a protocol version integer, so that adding Sapling (and beyond) will be easier.
2018-08-20 09:48:51 -07:00
Eirik Ogilvie-Wigley 4e1e91512d Fix assertion and comment 2018-08-06 09:58:40 -06:00
Eirik Ogilvie-Wigley 7929851626 Only include the change field if we have a spending key 2018-08-06 09:58:40 -06:00
Larry Ruane c0aa34a4b2 generalize mininode.py protocol versioning 2018-08-02 20:30:20 -06:00
Homu 066cc9c6c7 Auto merge of #3429 - str4d:3217-sapling-address-creation, r=str4d
Add Sapling support to z_getnewaddress and z_listaddresses

Closes #3217.
2018-08-01 12:01:39 -07:00
Jack Grigg 4aabeebc1f
test: Fix permissions of wallet_addresses 2018-08-01 19:56:01 +01:00
Jack Grigg d75e69da5a
test: Deduplicate logic in wallet_addresses RPC test 2018-08-01 09:44:31 +01:00
Simon f01c11bd0f Add tests for expiryheight parameter of RPC createrawtransaction. 2018-07-30 10:24:10 -07:00
Jack Grigg eec85c4388
Add Sapling support to z_getnewaddress and z_listaddresses 2018-07-30 16:24:20 +01:00
Larry Ruane cb3a815b29 Add call to sync_all() after (z_sendmany, wait) 2018-07-20 12:00:41 -06:00
Daniel Cousens 4b184205e3
rpc: update inline comments to refer to new file paths 2018-07-18 11:07:17 -06:00
Homu b9bd5ab42c Auto merge of #3354 - leto:absurd_fee_bug, r=bitcartel
Fix absurd fee bug reported in #3281, with tests

This was ported from the Hush `absurd_fee_bug` PR: https://github.com/MyHush/hush/pull/136

Tests executed with `./qa/pull-tester/rpc-tests.sh wallet` and pass on Ubuntu 16.04. Some tests were added for previously untested behavior as well.

Closes #3281.
2018-07-17 15:03:08 -07:00
Simon 0b6eeac330 Update and fix per review comments, the test for absurd fee. 2018-07-17 13:00:42 -07:00
Homu 13b41a6760 Auto merge of #3156 - Eirik0:2935-change-indicator, r=bitcartel
Add change indicator

This adds to the json returned when calling z_listreceivedbyaddress and z_listuspent an additional field entitiled 'change' which will be either true or false depending on whether or not the note was change from another transaction.
2018-07-17 11:41:03 -07:00
Eirik Ogilvie-Wigley 62d707d1fd Fix test broken by change indicator 2018-07-16 14:50:06 -06:00
Eirik Ogilvie-Wigley 0646f749f9 Add change indicator for notes 2018-07-16 14:49:29 -06:00