]> Git Repo - VerusCoin.git/log
VerusCoin.git
6 years agoUpdate z_mergetoaddress documentation
Eirik Ogilvie-Wigley [Tue, 11 Dec 2018 21:25:35 +0000 (14:25 -0700)]
Update z_mergetoaddress documentation

6 years agoAuto merge of #3694 - mdr0id:release-v2.0.2-rc1, r=ianamunoz
Homu [Tue, 20 Nov 2018 01:56:43 +0000 (17:56 -0800)]
Auto merge of #3694 - mdr0id:release-v2.0.2-rc1, r=ianamunoz

Release v2.0.2 rc1

6 years agomake-release.py: Updated release notes and changelog for 2.0.2-rc1.
mdr0id [Sun, 18 Nov 2018 18:19:49 +0000 (10:19 -0800)]
make-release.py: Updated release notes and changelog for 2.0.2-rc1.

6 years agomake-release.py: Updated manpages for 2.0.2-rc1.
mdr0id [Sun, 18 Nov 2018 18:19:48 +0000 (10:19 -0800)]
make-release.py: Updated manpages for 2.0.2-rc1.

6 years agomake-release.py: Versioning changes for 2.0.2-rc1.
mdr0id [Sun, 18 Nov 2018 18:11:46 +0000 (10:11 -0800)]
make-release.py: Versioning changes for 2.0.2-rc1.

6 years agoAuto merge of #3689 - bitcartel:zec13_expiry_dos_mitigation, r=bitcartel
Homu [Sat, 17 Nov 2018 17:18:43 +0000 (09:18 -0800)]
Auto merge of #3689 - bitcartel:zec13_expiry_dos_mitigation, r=bitcartel

ZEC-013 mitigation

6 years agoFor ZEC-013. RPC sendrawtransaction returns error if tx expiring soon.
Simon [Thu, 15 Nov 2018 22:23:15 +0000 (14:23 -0800)]
For ZEC-013. RPC sendrawtransaction returns error if tx expiring soon.

6 years agoFor ZEC-013. Update qa tests broken by expiring soon threshold.
Simon [Mon, 12 Nov 2018 23:03:05 +0000 (15:03 -0800)]
For ZEC-013. Update qa tests broken by expiring soon threshold.

6 years agoFor ZEC-013. RPC createrawtransaction returns error if tx expiring soon.
Simon [Wed, 7 Nov 2018 07:32:30 +0000 (23:32 -0800)]
For ZEC-013. RPC createrawtransaction returns error if tx expiring soon.

6 years agoFor ZEC-013. Don't propagate txs which are expiring soon in p2p messages.
Simon [Wed, 7 Nov 2018 01:33:27 +0000 (17:33 -0800)]
For ZEC-013. Don't propagate txs which are expiring soon in p2p messages.

When responding to "mempool" message, do not include the txid of an
expiring soon transaction in the "inv" message reply.
When responding to "getdata" message, do not reply with a "tx" message
for a transaction which is expiring soon.

6 years agoFor ZEC-013. Mitigate potential tx expiry height related DoS vector.
Simon [Mon, 5 Nov 2018 18:24:20 +0000 (10:24 -0800)]
For ZEC-013. Mitigate potential tx expiry height related DoS vector.

Don't accept transactions which are about to expire (next 3 blocks).
Don't set a ban score if a peer does propragate these transactions.
See ZEC-013 for more detail.

6 years agoAdd support for "notfound" message to mininode.
Simon [Wed, 7 Nov 2018 22:58:20 +0000 (14:58 -0800)]
Add support for "notfound" message to mininode.

6 years agoAuto merge of #3684 - str4d:load-sapling-chain-value, r=bitcartel
Homu [Sat, 17 Nov 2018 05:07:46 +0000 (21:07 -0800)]
Auto merge of #3684 - str4d:load-sapling-chain-value, r=bitcartel

Load sapling chain value into memory

`CBlockIndex::nSaplingValue` has been correctly set and written to disk since before Sapling activated, meaning that all nodes now are correctly tracking the Sapling shielded pool value on-disk. However, on restart the per-block values are not being read into memory, and so the in-memory pool value appears to be zero on every restart. Setting `nSaplingValue` in-memory during block index loading fixes the problem.

6 years agoAuto merge of #3670 - LarryRuane:3399-peer-ban-overwinter, r=bitcartel
Homu [Sat, 17 Nov 2018 03:22:48 +0000 (19:22 -0800)]
Auto merge of #3670 - LarryRuane:3399-peer-ban-overwinter, r=bitcartel

don't ban peers when loading pre-sapling (and pre-blossom) blocks

Resolves #3399.

6 years agoAuto merge of #3619 - Eirik0:3216-z-mergetoaddress, r=bitcartel
Homu [Sat, 17 Nov 2018 01:31:20 +0000 (17:31 -0800)]
Auto merge of #3619 - Eirik0:3216-z-mergetoaddress, r=bitcartel

Sapling Support for z_mergetoaddress

Closes #3216.
Closes #3063.

6 years agoAdjust z_mergetoaddress assertions in Sapling rpc test
Eirik Ogilvie-Wigley [Fri, 26 Oct 2018 06:08:05 +0000 (00:08 -0600)]
Adjust z_mergetoaddress assertions in Sapling rpc test

6 years agoAdd additional z_mergetoaddress parameter tests
Eirik Ogilvie-Wigley [Wed, 31 Oct 2018 06:59:48 +0000 (00:59 -0600)]
Add additional z_mergetoaddress parameter tests

6 years agoBetter error messages when sending between Sprout and Sapling
Eirik Ogilvie-Wigley [Fri, 16 Nov 2018 01:03:52 +0000 (18:03 -0700)]
Better error messages when sending between Sprout and Sapling

6 years agoAdd locking for Sapling notes
Eirik Ogilvie-Wigley [Wed, 24 Oct 2018 22:19:09 +0000 (16:19 -0600)]
Add locking for Sapling notes

6 years agoAdd Sapling support to z_mergetoaddress
Eirik Ogilvie-Wigley [Thu, 18 Oct 2018 21:37:58 +0000 (15:37 -0600)]
Add Sapling support to z_mergetoaddress

6 years agoExtend Sprout mergetoaddress rpc test to also work for Sapling
Eirik Ogilvie-Wigley [Thu, 18 Oct 2018 17:13:51 +0000 (11:13 -0600)]
Extend Sprout mergetoaddress rpc test to also work for Sapling

6 years agoAdd fail method to rpc test utils
Eirik Ogilvie-Wigley [Thu, 18 Oct 2018 18:59:29 +0000 (12:59 -0600)]
Add fail method to rpc test utils

6 years agoFix z_mergetoaddress parameter tests
Eirik Ogilvie-Wigley [Wed, 31 Oct 2018 06:49:45 +0000 (00:49 -0600)]
Fix z_mergetoaddress parameter tests

6 years agoAuto merge of #3680 - bitcartel:3671_sapling_default_z_getnewaddress, r=bitcartel
Homu [Fri, 16 Nov 2018 22:23:50 +0000 (14:23 -0800)]
Auto merge of #3680 - bitcartel:3671_sapling_default_z_getnewaddress, r=bitcartel

Make Sapling the default address format when calling RPC z_getnewaddress

Closes #3671.

6 years agoUpdate qa tests for new "sapling" default for z_getnewaddress.
Simon [Fri, 16 Nov 2018 22:22:23 +0000 (14:22 -0800)]
Update qa tests for new "sapling" default for z_getnewaddress.

6 years agoUpdate rpc_wallet_tests for new "sapling" default for z_getnewaddress.
Simon [Wed, 14 Nov 2018 23:20:22 +0000 (15:20 -0800)]
Update rpc_wallet_tests for new "sapling" default for z_getnewaddress.

6 years agoCloses #3671 to make "sapling" the default for z_getnewaddress RPC.
Simon [Wed, 14 Nov 2018 23:19:24 +0000 (15:19 -0800)]
Closes #3671 to make "sapling" the default for z_getnewaddress RPC.

6 years agoTest Sapling value pool accounting
Jack Grigg [Fri, 16 Nov 2018 16:14:52 +0000 (16:14 +0000)]
Test Sapling value pool accounting

6 years agoComment in CDiskBlockIndex that LoadBlockIndexGuts also needs updating
Jack Grigg [Fri, 16 Nov 2018 15:13:17 +0000 (15:13 +0000)]
Comment in CDiskBlockIndex that LoadBlockIndexGuts also needs updating

6 years agoSet nSaplingValue in-memory when loading block index from disk
Jack Grigg [Fri, 16 Nov 2018 15:11:33 +0000 (15:11 +0000)]
Set nSaplingValue in-memory when loading block index from disk

6 years agoAuto merge of #3669 - charlieok:init_win_networking_in_test_setup, r=str4d
Homu [Thu, 15 Nov 2018 20:34:11 +0000 (12:34 -0800)]
Auto merge of #3669 - charlieok:init_win_networking_in_test_setup, r=str4d

Add a call to SetupNetworking in BasicTestingSetup

In issue https://github.com/zcash/zcash/issues/3668 , the error code returned by `getaddrinfo_a` (10093) is `WSANOTINITIALISED`:

> Successful WSAStartup not yet performed.  Either the application has not called WSAStartup or WSAStartup  failed. The application may be accessing a socket that the current  active task does not own (that is, trying to share a socket between  tasks), or WSACleanup has been called too many times.

https://docs.microsoft.com/en-us/windows/desktop/winsock/windows-sockets-error-codes-2

`WSAStartup` is called from the `SetupNetworking` function in `util.cpp`, but `SetupNetworking` was not being called during test setup. This pull request adds that call.

Here is a gitlab pipeline running tests in the `test_bitcoin.exe` executable before this change:
https://gitlab.com/charlieok/zcash/pipelines/36483478

...and here is the same set of tests run after this change:
https://gitlab.com/charlieok/zcash/pipelines/36485098

6 years agoAuto merge of #2815 - str4d:2074-relay-pruning, r=bitcartel
Homu [Thu, 15 Nov 2018 18:28:44 +0000 (10:28 -0800)]
Auto merge of #2815 - str4d:2074-relay-pruning, r=bitcartel

Relay blocks when pruning

Cherry-picked from https://github.com/bitcoin/bitcoin/pull/6148

Part of #2074.

6 years agoAuto merge of #3663 - garethtdavies:3610-rpc-cleanup, r=bitcartel
Homu [Thu, 15 Nov 2018 16:42:33 +0000 (08:42 -0800)]
Auto merge of #3663 - garethtdavies:3610-rpc-cleanup, r=bitcartel

Cleaning up RPC output

Closes #3610 and #3661 to clean up RPC help messages.

6 years agoAuto merge of #3585 - str4d:merkle-tree-test-vectors, r=bitcartel
Homu [Thu, 15 Nov 2018 05:48:35 +0000 (21:48 -0800)]
Auto merge of #3585 - str4d:merkle-tree-test-vectors, r=bitcartel

Update IncrementalMerkleTree test vectors to use valid commitments

The original commitments were SHA256 outputs, and some were outside the
scalar field. This didn't affect the Merkle hash, which drops the high
bit from each commitment, but it does affect the creation of the Merkle
path in Rust, which requires path nodes to be valid scalars.

Here, we explicitly drop the high bit of all test vector commitments,
as well as reducing the two that remain outside the field. The test
vectors still pass, and can now also be used in the Rust implementation.

6 years agodon't ban peers when loading pre-sapling (and pre-blossom) blocks
Larry Ruane [Wed, 14 Nov 2018 00:37:59 +0000 (17:37 -0700)]
don't ban peers when loading pre-sapling (and pre-blossom) blocks

6 years agoAdd a call to SetupNetworking in BasicTestingSetup
Charlie O'Keefe [Tue, 13 Nov 2018 18:05:57 +0000 (11:05 -0700)]
Add a call to SetupNetworking in BasicTestingSetup

6 years agoAuto merge of #3613 - bitcartel:3597_transaction_builder_version_check, r=bitcartel
Homu [Mon, 12 Nov 2018 21:18:47 +0000 (13:18 -0800)]
Auto merge of #3613 - bitcartel:3597_transaction_builder_version_check, r=bitcartel

Closes #3597. TransactionBuilder should check tx version before adding Sapling spends and outputs

6 years agoCleaning up RPC output
Gareth Davies [Sat, 10 Nov 2018 15:49:05 +0000 (07:49 -0800)]
Cleaning up RPC output

Closes #3610 and #3661

6 years agoAuto merge of #3637 - tpantin:update_copyright_to_2018, r=daira
Homu [Thu, 8 Nov 2018 17:16:54 +0000 (09:16 -0800)]
Auto merge of #3637 - tpantin:update_copyright_to_2018, r=daira

Update COPYRIGHT_YEAR from 2017 to 2018

This should update the year listed in zcashd and zcash-cli version info from 2017 to 2018.

6 years agoAuto merge of #3631 - arielgabizon:rename-method, r=bitcartel
Homu [Thu, 8 Nov 2018 07:39:55 +0000 (23:39 -0800)]
Auto merge of #3631 - arielgabizon:rename-method, r=bitcartel

rename HaveJoinSplitRequirements for Sapling

The method also checks condition for Sapling spends whilst the method name implies otherwise

6 years agoCloses #3597. TransactionBuilder checks tx version before adding Sapling spends and...
Simon [Thu, 8 Nov 2018 04:38:14 +0000 (20:38 -0800)]
Closes #3597. TransactionBuilder checks tx version before adding Sapling spends and outputs.

6 years agoAuto merge of #3649 - garethtdavies:3648-correct-param-size, r=daira
Homu [Wed, 7 Nov 2018 14:41:28 +0000 (06:41 -0800)]
Auto merge of #3649 - garethtdavies:3648-correct-param-size, r=daira

Add clarifying text for parameter size

Addresses #3648.

Parameter size was previously specified to the nearest MB so not sure if 1.7GB/800MB is not specific enough? The true figures on disk are 1647MB and 777MB.

6 years agoAuto merge of #3654 - charlieok:save_and_restore_current_path, r=daira
Homu [Fri, 2 Nov 2018 19:58:24 +0000 (12:58 -0700)]
Auto merge of #3654 - charlieok:save_and_restore_current_path, r=daira

Save and restore current_path in TestingSetup constructor/destructor

In issue https://github.com/zcash/zcash/issues/3653 , the affected tests change their current working directory to a temporary directory that is created in the TestingSetup constructor and deleted in the destructor. In Windows it seems to cause a problem when a process attempts to delete its current working directory.

This change fixes the issue by saving the path of the current working directory in the constructor, and restoring the working directory to that path in the destructor before deleting the temporary directory.

6 years agoSave and restore current_path in TestingSetup constructor/destructor
Charlie O'Keefe [Wed, 31 Oct 2018 20:13:50 +0000 (14:13 -0600)]
Save and restore current_path in TestingSetup constructor/destructor

6 years agoAdd clarifying text for parameter size
Gareth Davies [Wed, 31 Oct 2018 04:10:31 +0000 (21:10 -0700)]
Add clarifying text for parameter size

6 years agorename HaveJoinSplitRequirements for Sapling
arielgabizon [Fri, 26 Oct 2018 13:44:18 +0000 (15:44 +0200)]
rename HaveJoinSplitRequirements for Sapling

6 years agoAuto merge of #3627 - bitcartel:3616_document_debian_error, r=daira
Homu [Mon, 29 Oct 2018 19:49:49 +0000 (12:49 -0700)]
Auto merge of #3627 - bitcartel:3616_document_debian_error, r=daira

Closes #3616.  Document revoked key error when upgrading on Debian.

6 years agoAuto merge of #3605 - LarryRuane:3604-memo-zeros, r=daira
Homu [Sun, 28 Oct 2018 10:15:07 +0000 (03:15 -0700)]
Auto merge of #3605 - LarryRuane:3604-memo-zeros, r=daira

3604 fix sapling default memo - 0xF6 plus zeros

Closes #3604. For Sapling outputs, set the default memo to `no_memo` instead of all zeros. (See section 5.5 of the Sapling protocol specification.)

6 years agoAuto merge of #3628 - bitcartel:3329_safe_mode_alert_for_pre_sapling_nodes, r=daira
Homu [Sun, 28 Oct 2018 08:21:05 +0000 (01:21 -0700)]
Auto merge of #3628 - bitcartel:3329_safe_mode_alert_for_pre_sapling_nodes, r=daira

Closes #3329. Send alert to put non-Sapling nodes into safe mode.

The alert targets nodes running protocol version <= 170006.
Sapling compatible nodes run protocol version >= 170007.

6 years agoUpdating copyright year from 2017 to 2018
tpantin [Sat, 27 Oct 2018 20:19:40 +0000 (16:19 -0400)]
Updating copyright year from 2017 to 2018

6 years agoAuto merge of #3633 - str4d:params-path-encoding, r=bitcartel
Homu [Sat, 27 Oct 2018 18:22:17 +0000 (11:22 -0700)]
Auto merge of #3633 - str4d:params-path-encoding, r=bitcartel

Pass parameter paths as native strings to librustzcash

Fixes a user-reported crash when starting on Windows with a Cyrillic non-UTF-8 locale.

6 years agoBuild librustzcash package without changing directory
Jack Grigg [Sat, 27 Oct 2018 17:41:53 +0000 (06:41 +1300)]
Build librustzcash package without changing directory

This ensures that the depends system's custom PATH is applied correctly,
and the pre-build Rust binaries are accessible.

6 years agoPass parameter paths as native strings to librustzcash
Jack Grigg [Sat, 27 Oct 2018 04:15:32 +0000 (17:15 +1300)]
Pass parameter paths as native strings to librustzcash

6 years agoMigrate to current librustzcash
Jack Grigg [Sat, 27 Oct 2018 04:03:47 +0000 (17:03 +1300)]
Migrate to current librustzcash

The only upstream change relative to the previous commit is that the
various Zcash-specific dependencies have been pulled into a cargo
workspace. The dependecies in the workspace use the same commits as the
crates we had previously vendored.

The patches are necessary to handle the fact that cargo requires that
dev dependencies are available even if not used, and we would otherwise
need to vendor all the underlying crates.

6 years agoCloses #3329. Send alert to put non-Sapling nodes into safe mode.
Simon [Thu, 25 Oct 2018 18:44:31 +0000 (11:44 -0700)]
Closes #3329. Send alert to put non-Sapling nodes into safe mode.

The alert targets nodes running protocol version <= 170006.
Sapling compatible nodes run protocol version >= 170007.

6 years agoCloses #3616. Document revoked key error when upgrading on Debian.
Simon [Thu, 25 Oct 2018 18:30:22 +0000 (11:30 -0700)]
Closes #3616.  Document revoked key error when upgrading on Debian.

6 years agoAuto merge of #3622 - Eirik0:rpc-assert-message, r=daira
Homu [Thu, 25 Oct 2018 06:14:19 +0000 (23:14 -0700)]
Auto merge of #3622 - Eirik0:rpc-assert-message, r=daira

Fix potentially misleading test failures

This is in response to https://github.com/zcash/zcash/pull/3590#discussion_r224677644

Currently statements such as:

```assert_equal("Embarassment", "Embarrassment", "Misspelling detected")```

Will produce essentially the following error:
```
Assertion failed: Misspelling detected; expected: <Embarassment> but was: <Embarrassment>
  File "/home/eirik/Development/zcash/qa/rpc-tests/test_framework/test_framework.py", line 121, in main
    self.run_test()
  File "/home/eirik/Development/zcash/qa/rpc-tests/test_spelling.py", line 13, in run_test
```
Which is misleading because the item on the left is not what is actually expected.

This PR changes the assertion failure to be displayed as:
```
Assertion failed: (left == right); Misspelling detected
  left: <Embarassment>
 right: <Embarrassment>
  File "/home/eirik/Development/zcash/qa/rpc-tests/test_framework/test_framework.py", line 121, in main
    self.run_test()
  File "/home/eirik/Development/zcash/qa/rpc-tests/test_spelling.py", line 13, in run_test
```

6 years agoAuto merge of #3620 - Eirik0:fix-sendmany-errmsg, r=bitcartel
Homu [Wed, 24 Oct 2018 21:12:05 +0000 (14:12 -0700)]
Auto merge of #3620 - Eirik0:fix-sendmany-errmsg, r=bitcartel

Fix error message

This error should never happen, but it may as well reference the method it is thrown from.

6 years agoFix potentially misleading test failures
Eirik Ogilvie-Wigley [Wed, 24 Oct 2018 19:53:25 +0000 (13:53 -0600)]
Fix potentially misleading test failures

6 years agoFix error message
Eirik Ogilvie-Wigley [Wed, 24 Oct 2018 18:05:48 +0000 (12:05 -0600)]
Fix error message

6 years agoupdate bug in wallet_listreceived.py, now it highlights the fix
Larry Ruane [Wed, 24 Oct 2018 14:13:56 +0000 (08:13 -0600)]
update bug in wallet_listreceived.py, now it highlights the fix

6 years agoAuto merge of #3611 - bitcartel:3467_add_sapling_benchmarks, r=bitcartel
Homu [Wed, 24 Oct 2018 05:52:22 +0000 (22:52 -0700)]
Auto merge of #3611 - bitcartel:3467_add_sapling_benchmarks, r=bitcartel

Closes #3467. Add benchmarks for Sapling spends and outputs.

Four new benchmarks are added to RPC zcbenchmark:
- createsaplingspend
- createsaplingoutput
- verifysaplingspend
- verifysaplingoutput

6 years agosapling z_sendmany default memo 0xf6 + zeros
Larry Ruane [Mon, 15 Oct 2018 23:25:03 +0000 (17:25 -0600)]
sapling z_sendmany default memo 0xf6 + zeros

6 years agoAuto merge of #3581 - Eirik0:3580-unspent-note-cleanup, r=daira
Homu [Tue, 23 Oct 2018 05:36:05 +0000 (22:36 -0700)]
Auto merge of #3581 - Eirik0:3580-unspent-note-cleanup, r=daira

Remove GetUnspentFilteredNotes

Closes #3580

This PR generalized `GetFilteredNotes`, expanding its functionality to also do what we do in `GetUnspentFilteredNotes`. This enables us to remove the latter.

6 years agoWrap long line and update comments
Eirik Ogilvie-Wigley [Mon, 22 Oct 2018 16:01:17 +0000 (10:01 -0600)]
Wrap long line and update comments

6 years agoAuto merge of #3579 - Eirik0:3577-generate-sprout-zkey, r=bitcartel
Homu [Fri, 19 Oct 2018 02:47:46 +0000 (19:47 -0700)]
Auto merge of #3579 - Eirik0:3577-generate-sprout-zkey, r=bitcartel

Make it clear that CWallet::GenerateNewZKey is Sprout specific

Closes https://github.com/zcash/zcash/issues/3577

When adding sapling support we had considered making the method `GenerateNewZKey` generic, but it ended up making more sense to add a second method `GenerateNewSaplingZKey` for sapling support.

This PR changes the name of `GenerateNewZKey` to `GenerateNewSproutZKey` and changes the return type from `libzcash::PaymentAddress` to `libzcash::SproutPaymentAddress` to make it more clear that this is what the method does.

6 years agoCloses #3467. Add benchmarks for Sapling spends and outputs.
Simon [Fri, 19 Oct 2018 02:10:59 +0000 (19:10 -0700)]
Closes #3467. Add benchmarks for Sapling spends and outputs.

Four new benchmarks are added to RPC zcbenchmark:
- createsaplingspend
- createsaplingoutput
- verifysaplingspend
- verifysaplingoutput

6 years agoAuto merge of #3588 - bitcartel:hash_final_sapling_root_verification, r=bitcartel
Homu [Fri, 19 Oct 2018 00:52:11 +0000 (17:52 -0700)]
Auto merge of #3588 - bitcartel:hash_final_sapling_root_verification, r=bitcartel

Add test to verify final sapling root in block header is updated.

6 years agoAuto merge of #3541 - leto:amount_docs, r=bitcartel
Homu [Thu, 18 Oct 2018 22:36:34 +0000 (15:36 -0700)]
Auto merge of #3541 - leto:amount_docs, r=bitcartel

Clarify in sendmany/z_sendmany rpc docs that amounts are not FP

Fixes #3539

I clarified in the docs that only 8 digits of precision are allowed. For example, if you try 9 digits you will get:
```
zcash-cli z_sendmany $TADDR  "[{\"address\":\"$ZADDR\",\"amount\":0.123456789}]"
error code: -3
error message:
Invalid amount
```

6 years agoRemove GetUnspentFilteredNotes
Eirik Ogilvie-Wigley [Tue, 9 Oct 2018 18:44:45 +0000 (12:44 -0600)]
Remove GetUnspentFilteredNotes

6 years agoAdd functionality from GetUnspentFilteredNotes to GetFilteredNotes
Eirik Ogilvie-Wigley [Tue, 9 Oct 2018 18:19:56 +0000 (12:19 -0600)]
Add functionality from GetUnspentFilteredNotes to GetFilteredNotes

6 years agoRemove unspent note entry structs
Eirik Ogilvie-Wigley [Tue, 9 Oct 2018 15:48:32 +0000 (09:48 -0600)]
Remove unspent note entry structs

6 years agoAuto merge of #3602 - bitcartel:release-v2.0.1, r=ebfull
Homu [Sun, 14 Oct 2018 20:56:08 +0000 (13:56 -0700)]
Auto merge of #3602 - bitcartel:release-v2.0.1, r=ebfull

Release v2.0.1

6 years agomake-release.py: Updated release notes and changelog for 2.0.1.
Simon [Sun, 14 Oct 2018 20:40:30 +0000 (13:40 -0700)]
make-release.py: Updated release notes and changelog for 2.0.1.

6 years agomake-release.py: Updated manpages for 2.0.1.
Simon [Sun, 14 Oct 2018 20:40:30 +0000 (13:40 -0700)]
make-release.py: Updated manpages for 2.0.1.

6 years agomake-release.py: Versioning changes for 2.0.1.
Simon [Sun, 14 Oct 2018 20:39:40 +0000 (13:39 -0700)]
make-release.py: Versioning changes for 2.0.1.

6 years agoUpdate release-notes.md for clarity.
Simon [Sun, 14 Oct 2018 20:38:49 +0000 (13:38 -0700)]
Update release-notes.md for clarity.

6 years agoAuto merge of #3601 - bitcartel:update_release_notes_201, r=bitcartel
Homu [Sun, 14 Oct 2018 17:46:06 +0000 (10:46 -0700)]
Auto merge of #3601 - bitcartel:update_release_notes_201, r=bitcartel

Update release notes for v2.0.1

6 years agoUpdate release notes for v2.0.1
Simon [Sun, 14 Oct 2018 16:23:49 +0000 (09:23 -0700)]
Update release notes for v2.0.1

6 years agoFix another instance of incorrectly saying amount is double precision, and s/ZC/ZEC/
Jonathan "Duke" Leto [Sun, 14 Oct 2018 13:37:25 +0000 (06:37 -0700)]
Fix another instance of incorrectly saying amount is double precision, and s/ZC/ZEC/

6 years agoAuto merge of #3599 - bitcartel:update_checkpoints_201, r=bitcartel
Homu [Sun, 14 Oct 2018 01:19:49 +0000 (18:19 -0700)]
Auto merge of #3599 - bitcartel:update_checkpoints_201, r=bitcartel

Update mainnet checkpoint for block 410100.

6 years agoAuto merge of #3596 - bitcartel:stop_v3_tx_creation_when_sapling, r=bitcartel
Homu [Sat, 13 Oct 2018 20:20:02 +0000 (13:20 -0700)]
Auto merge of #3596 - bitcartel:stop_v3_tx_creation_when_sapling, r=bitcartel

For #3359. RPCs return error if Sapling addresses used before Sapling activation.

6 years agoUpdate mainnet checkpoint for block 410100.
Simon [Sat, 13 Oct 2018 15:55:38 +0000 (08:55 -0700)]
Update mainnet checkpoint for block 410100.

6 years agoFor #3359. Return error if Sapling addresses passed to RPC z_mergetoaddress.
Simon [Sat, 13 Oct 2018 15:10:10 +0000 (08:10 -0700)]
For #3359. Return error if Sapling addresses passed to RPC z_mergetoaddress.

RPC z_mergetoaddress does not support Sapling yet but the existing error
reporting was not clear to users.

6 years agoFor #3359. RPCs transferring funds return error if Sapling addresses are used before...
Simon [Sat, 13 Oct 2018 05:21:00 +0000 (22:21 -0700)]
For #3359. RPCs transferring funds return error if Sapling addresses are used before Sapling activation.

6 years agoAuto merge of #3592 - Eirik0:z-sendmany-better-error, r=bitcartel
Homu [Fri, 12 Oct 2018 22:30:34 +0000 (15:30 -0700)]
Auto merge of #3592 - Eirik0:z-sendmany-better-error, r=bitcartel

Better error message when sending to both sprout and sapling

When trying to send to both Sprout and Sapling (not currently supported with z_sendmany) we were getting the following error in our operation result: `general exception: boost::bad_get: failed value get using boost::get`.

This PR changes this to fail with a better error message before the async operation begins:
```
error code: -8
error message:
Cannot send to both Sprout and Sapling addresses using z_sendmany
```

6 years agoBetter error message when sending to both sprout and sapling
Eirik Ogilvie-Wigley [Fri, 12 Oct 2018 20:12:21 +0000 (14:12 -0600)]
Better error message when sending to both sprout and sapling

Co-authored-by mdr0id <[email protected]>

6 years agoAuto merge of #3590 - bitcartel:fix_nullifier_persistence, r=bitcartel
Homu [Fri, 12 Oct 2018 17:30:17 +0000 (10:30 -0700)]
Auto merge of #3590 - bitcartel:fix_nullifier_persistence, r=bitcartel

Resolves Sapling nullifier persistence issue when importing a key.

During a rescan, a CWalletTx was persisted to disk before it had its
note data set.  This meant that upon restart, the CWalletTx would
potentially be missing its nullifiers causing the balance to include
notes which had already been spent.

The resolution is to force a CWalletTx to be persisted after it has had
its nullifiers set correctly, before the note witnesses are updated.

6 years agoUpdate test to verify Sapling nullifiers and witnesses persist correctly.
Simon [Fri, 12 Oct 2018 04:52:56 +0000 (21:52 -0700)]
Update test to verify Sapling nullifiers and witnesses persist correctly.

6 years agoResolves Sapling nullifier persistence issue when importing a key.
Simon [Fri, 12 Oct 2018 04:25:53 +0000 (21:25 -0700)]
Resolves Sapling nullifier persistence issue when importing a key.

During a rescan, a CWalletTx was persisted to disk before it had its
note data set.  This meant that upon restart, the CWalletTx would
potentially be missing its nullifiers causing the wallet's balance
to include notes which had already been spent.

The resolution is to ensure that after a rescan, a CWalletTx is
persisted after it has had its nullifiers set correctly.

Co-authored-by: Eirik Ogilvie-Wigley <[email protected]>
6 years agoadd test for sapling spend with transparent recipient
arielgabizon [Thu, 11 Oct 2018 13:22:20 +0000 (15:22 +0200)]
add test for sapling spend with transparent recipient

6 years agoAdd test to verify final sapling root in block header is updated.
Simon [Thu, 11 Oct 2018 00:30:58 +0000 (17:30 -0700)]
Add test to verify final sapling root in block header is updated.

6 years agoAuto merge of #3587 - Eirik0:3586-fix-dump-comment, r=ebfull
Homu [Wed, 10 Oct 2018 23:34:49 +0000 (16:34 -0700)]
Auto merge of #3587 - Eirik0:3586-fix-dump-comment, r=ebfull

Fix HDSeed comment in wallet dump

Closes #3586

6 years agoFix HDSeed comment
Eirik Ogilvie-Wigley [Wed, 10 Oct 2018 22:00:59 +0000 (16:00 -0600)]
Fix HDSeed comment

6 years agoUpdate IncrementalMerkleTree test vectors to use valid commitments
Jack Grigg [Wed, 10 Oct 2018 19:54:55 +0000 (20:54 +0100)]
Update IncrementalMerkleTree test vectors to use valid commitments

The original commitments were SHA256 outputs, and some were outside the
scalar field. This didn't affect the Merkle hash, which drops the high
bit from each commitment, but it does affect the creation of the Merkle
path in Rust, which requires path nodes to be valid scalars.

Here, we explicitly drop the high bit of all test vector commitments,
as well as reducing the two that remain outside the field. The test
vectors still pass, and can now also be used in the Rust implementation.

6 years agoAuto merge of #3450 - leto:rpctest-readme, r=str4d
Homu [Tue, 9 Oct 2018 20:18:07 +0000 (13:18 -0700)]
Auto merge of #3450 - leto:rpctest-readme, r=str4d

Fix some typos in rpc-tests readme

6 years agoRemove unnecessary call to IsValidPaymentAddress
Eirik Ogilvie-Wigley [Mon, 8 Oct 2018 22:25:29 +0000 (16:25 -0600)]
Remove unnecessary call to IsValidPaymentAddress

6 years agoGenerateNewSproutZKey can return a SproutPaymentAddress
Eirik Ogilvie-Wigley [Mon, 8 Oct 2018 20:52:58 +0000 (14:52 -0600)]
GenerateNewSproutZKey can return a SproutPaymentAddress

6 years agoAuto merge of #3578 - mdr0id:release-v2.0.1-rc1, r=bitcartel
Homu [Mon, 8 Oct 2018 20:41:35 +0000 (13:41 -0700)]
Auto merge of #3578 - mdr0id:release-v2.0.1-rc1, r=bitcartel

Release v2.0.1-rc1

6 years agoRename GenerateNewZKey to include Sprout
Eirik Ogilvie-Wigley [Mon, 8 Oct 2018 20:23:03 +0000 (14:23 -0600)]
Rename GenerateNewZKey to include Sprout

This page took 0.065052 seconds and 4 git commands to generate.