Commit Graph

1884 Commits

Author SHA1 Message Date
Homu
1942f7a42b Auto merge of #3242 - str4d:3058-key-encoding-refactor, r=str4d
Key encoding refactor

Includes code cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#11372
  - Only the first three commits (the fourth commit depends on #2390)

Part of #3058.
2018-05-11 12:21:29 -07:00
jl777
09511571af Test 2018-05-11 16:36:21 +03:00
jl777
ae3f3fea6c +GAME sanitize listunspent interest calc 2018-05-11 16:28:52 +03:00
Jonathan "Duke" Leto
30bf78ca23 Clarify help that signmessage only works on taddrs 2018-05-10 17:25:13 -07:00
jl777
be5f41cd90 Prevent rebroadcast of expired tx 2018-05-10 13:00:24 +03:00
jl777
a5b7fef44b Test 2018-05-10 12:56:52 +03:00
jl777
bd070d8bce Prevent relaying expired tx 2018-05-10 12:55:14 +03:00
miketout
135fa24e0f Integrate new proof of stake support 2018-05-09 21:40:17 -07:00
Jack Grigg
97b46f00cc Add valueBalance to value balances, and enforce its consensus rules 2018-05-09 11:34:41 +01:00
miketout
8af1971bf3 Only zero sequence for timelocked coinbases to enable shielding all types 2018-05-09 03:32:28 -07:00
miketout
c2f6623fdf Add blocks to maturity in transaction JSON for listtransactions RPC API 2018-05-09 02:06:55 -07:00
miketout
204cf3fcba Enable seamless spending of timelocked coinbases through z_shieldcoinbase 2018-05-09 00:49:09 -07:00
miketout
32d8c6d015 Merge latest from Komodo, including POS 2018-05-08 17:57:03 -07:00
Jack Grigg
93bd00a0d5 Add key_io includes to Zcash-specific code 2018-05-08 21:39:56 +01:00
Pieter Wuille
3d31e09cbb Split key_io (address/key encodings) off from base58 2018-05-08 21:39:56 +01:00
Jack Grigg
8bf3a3d700 Introduce wrappers around CZCViewingKey 2018-05-08 21:39:55 +01:00
Jack Grigg
472f75bc2d Introduce wrappers around CZCSpendingKey 2018-05-08 21:39:55 +01:00
Jack Grigg
80ed13d545 Introduce wrappers around CZCPaymentAddress
This patch removes the need for the intermediary Base58 type
CZCPaymentAddress, by providing {Encode,Decode}PaymentAddress
functions that directly operate on the conversion between strings
and libzcash::PaymentAddress.
2018-05-08 21:39:55 +01:00
Pieter Wuille
f146029b0a Replace CBitcoinSecret with {Encode,Decode}Secret 2018-05-08 21:39:54 +01:00
miketout
ea340a1443 Recognizing CLTV transactions more broadly 2018-05-08 13:33:14 -07:00
jl777
ba1587fd37 Test 2018-05-08 18:55:16 +03:00
jl777
bed8cd1f49 Test 2018-05-08 18:38:51 +03:00
Homu
0c1adf8281 Auto merge of #3201 - Eirik0:3190-dumpprivkey-help-text, r=str4d
Clarify help text of dumpprivkey

Closes #3190
2018-05-08 06:02:17 -07:00
Homu
0a98b97524 Auto merge of #3236 - str4d:3192-jsoutpoint-constructor, r=str4d
Change JSOutPoint constructor to have js argument be uint64_t

Closes #3192.
2018-05-08 02:50:04 -07:00
Homu
333b9a0d0b Auto merge of #3170 - ebfull:sapling-merkle-tree, r=ebfull
Sapling merkle tree implementation

Closes #3056.

Please also review https://github.com/zcash/librustzcash/pull/8

This PR:

1. Introduces ZCSaplingIncrementalMerkleTree using Pedersen hashes.
2. Adds support for Sapling anchors into consensus rules. (Adds commitments, checks anchors are correct, handles block (dis)connects, etc.)
3. Handles mempool eviction for obsolete anchors.
4. Enforces correctness of block's Sapling root field
5. Changes miner to correctly apply the Sapling root to the block header
6. Handles mempool consistency checks for anchors
2018-05-07 20:37:46 -07:00
miketout
fab1429d48 Enable time locked transactions to be recognized in the wallet 2018-05-07 15:58:53 -07:00
Jack Grigg
e935beb810 wallet: Make some arguments const that can be 2018-05-07 22:13:26 +01:00
Jack Grigg
b87e271a9a wallet: Change IsLockedNote to take a JSOutPoint
This removes the uint64_t -> size_t -> uint64_t round trip, as well as the
JSOutPoint -> parts -> JSOutPoint round trip.
2018-05-07 21:56:57 +01: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
08f0728884 Rename hashAnchor to hashSproutAnchor. 2018-05-07 13:46:06 -06:00
Homu
1d4235dce7 Auto merge of #3239 - str4d:sapling-default-tx-version, r=str4d
Update CreateNewContextualCMutableTransaction for Sapling

Part of #3063.
2018-05-07 12:27:47 -07:00
jl777
db4b45a62b Test 2018-05-07 19:08:49 +03:00
jl777
56c6c06b39 Test 2018-05-07 17:48:32 +03:00
jl777
f31815fc3c Test 2018-05-07 17:39:01 +03:00
jl777
3566cdf6e6 Test 2018-05-07 17:26:20 +03:00
jl777
1500012776 Test 2018-05-07 17:13:49 +03:00
jl777
0eb15e9463 Test 2018-05-07 17:08:28 +03:00
jl777
3ed2e7334c Test 2018-05-07 17:07:38 +03:00
jl777
6d04359865 Test 2018-05-07 17:00:35 +03:00
jl777
e6a3570c42 Test 2018-05-07 16:48:04 +03:00
jl777
a9bad5a300 test 2018-05-07 15:47:18 +03:00
jl777
ff1ee86e6a Test 2018-05-07 15:31:23 +03:00
jl777
0b18f1230c Test 2018-05-07 15:16:20 +03:00
jl777
c4eb1abbfc Test 2018-05-07 15:12:34 +03:00
jl777
39fefa6be9 Test 2018-05-07 14:34:20 +03:00
jl777
f8fb4922da Test 2018-05-07 14:14:12 +03:00
jl777
469e1de39f Test 2018-05-07 14:04:18 +03:00
jl777
496f1fd267 Test 2018-05-07 13:57:43 +03:00
miketout
39267c3553 Reduce default difficulty 2018-05-06 13:06:14 -07:00