Jack Grigg
4a6a48479d
Copy over CNoteData::witnessHeight when updating wallet tx
2016-11-15 14:08:41 +13:00
Jack Grigg
40ef121e6a
Correctly set CNoteData::witnessHeight when decrementing witness caches
...
Closes #1715
2016-11-15 14:08:35 +13:00
Sean Bowe
c4643bd949
Throw more descriptive exceptions when the constraint system is violated.
2016-11-01 14:52:03 -06:00
zkbot
cd8e856df7
Auto merge of #1585 - bitcartel:1583_stop_test_writing_to_testnet3, r=daira
...
Closes #1583 by setting up the datadir for the wallet gtest.
Stops test writing to ~/.zcash/testnet3.
Also related to #1506
2016-10-21 03:15:00 -04:00
zkbot
323b8214c2
Auto merge of #1580 - str4d:1378-repair-witness-cache, r=daira
...
Clear witness cache when re-witnessing notes
Closes #1378
2016-10-21 00:24:39 -04:00
Simon
ffd2cb3437
Closes #1583 by setting up the datadir for the wallet gtest.
2016-10-20 16:45:02 -07:00
Jack Grigg
878c4b1b50
Clear witness cache when re-witnessing notes
...
Closes #1378
2016-10-20 10:32:20 -05:00
Jack Grigg
3774c944f8
Refactor test code to better test JSDescription::Randomized()
2016-10-18 12:44:56 -05:00
Jack Grigg
b6961fc112
Increment witnesses for new transactions on rescan
...
Closes #1400
2016-10-17 09:55:02 -05:00
Jack Grigg
a581fe2aae
Only ignore runtime errors caused by failed note decryption
2016-10-14 17:16:09 -05:00
Jack Grigg
1a62587e9a
Delay caching of nullifiers when wallet is locked
...
Closes #1502
2016-10-14 17:16:09 -05:00
Jack Grigg
fb2653ed0e
Add unit test that fails when calling FindMyNotes on a locked wallet
2016-10-14 17:14:13 -05:00
Jack Grigg
6da46b692a
Refactor test to clarify expectations
2016-10-14 09:31:26 -05:00
Jack Grigg
82c2d97c60
Add unit tests for WriteWitnessCache
...
Requires moving implementation into header
2016-10-11 09:33:47 -05:00
zkbot
d5dce9342b
Auto merge of #1444 - str4d:1394-reindex-clear-witness-caches, r=str4d
...
Clear note witness caches on reindexing
This PR also fixes a test that was passing arguments in the wrong order.
Closes #1394
2016-09-30 02:30:01 -04:00
Simon
eaccc007c9
Update test to filter and find notes.
2016-09-27 22:43:13 -07:00
Jack Grigg
76b226586e
Add wallet method to clear the note witness cache
2016-09-27 14:55:05 +13:00
Jack Grigg
e81c2de753
Fix test
2016-09-27 14:55:05 +13:00
Simon
1b141933e5
Rename GetUnspentNotes to GetFilteredNotes
...
Added parameter to ignore spent notes, which is true by default.
2016-09-08 21:46:15 -07:00
Simon
fe2f198277
Add test for GetUnspentNotes() in wallet.
2016-09-08 21:46:14 -07:00
Jack Grigg
289b12e448
Add tests for refactored wallet code
2016-09-08 17:29:08 +12:00
Simon
fa511e1084
Replace GetTxid() with GetHash() after rebase on latest.
2016-09-07 15:12:20 -07:00
Jack Grigg
f7d78fdde1
Fix failing test
2016-09-01 20:16:18 +12:00
Jack Grigg
268bd84f9a
Add coverage of the assertion inside GetNoteWitnesses()
2016-09-01 15:04:57 +12:00
Jack Grigg
ac91ebbe92
Add test showing that the witness cache isn't being serialised
2016-09-01 12:47:44 +12:00
Jack Grigg
32a103aab7
Changes after review
2016-09-01 11:48:15 +12:00
Jack Grigg
1551db870a
Add transactions to wallet if we spend notes in them
2016-08-31 18:28:00 +12:00
Jack Grigg
ad20f2149a
mapNullifiers -> mapNullifiersToNotes for clarity
2016-08-31 15:11:35 +12:00
Jack Grigg
4086e5ce98
Replace vAnchorCache with a cache size counter
...
The anchor is obtained from the returned witnesses; since all witnesses are to
the same point (the latest blockchain tip), they all have the same root.
2016-08-31 15:03:42 +12:00
Jack Grigg
3fac1020e7
Remove GetNoteDecryptors(), lock inside FindMyNotes() instead
2016-08-31 02:09:17 +12:00
Jack Grigg
de42390f90
Pass ZCIncrementalMerkleTree to wallet to prevent race conditions
2016-08-31 02:00:11 +12:00
Jack Grigg
be74c80deb
Add caching of incremental witnesses for spendable notes
2016-08-30 00:29:49 +12:00
Jack Grigg
8db7e25c3f
Create mapping from nullifiers to received notes
...
This is used in the same way as CTxIn.prevout (e.g. to mark transactions dirty).
2016-08-30 00:29:49 +12:00
Jack Grigg
0f1060478f
Keep track of spent notes, and detect and report conflicts
2016-08-30 00:29:49 +12:00
Jack Grigg
c3a7307a69
Store mapping between notes and PaymentAddresses in CWalletTx
2016-08-30 00:29:49 +12:00
Jack Grigg
02e674555e
Add wallet method for finding spendable notes in a CTransaction
2016-08-30 00:29:49 +12:00