bitcartel
4ab24d3625
Update payment API documentation for beta 1
2016-09-07 16:53:24 -07:00
Simon
fa511e1084
Replace GetTxid() with GetHash() after rebase on latest.
2016-09-07 15:12:20 -07:00
Simon
33264f5b46
Remove GetTxid() from CTransaction and update test_txid
2016-09-07 15:12:09 -07:00
Simon
805344dcf4
Refactor: replace calls to GetTxid() with GetHash()
2016-09-07 15:12:09 -07:00
Simon
6c79b9a12a
Update txid gtest to verify #1144 has been removed: GetTxid() and
...
GetHash() return the same result.
2016-09-07 15:12:09 -07:00
Simon
a64f681f2c
Remove #1144 from input data of script_tests.
...
Revert script_invalid.json to commit df1609f .
Revert script_valid.json to commit 1c54757 .
2016-09-07 15:12:09 -07:00
Simon
5316bd3560
Remove #1144 from bloom_tests by reverting to commit 5012190.
2016-09-07 15:12:09 -07:00
Simon
3bdb071cc3
Remove #1144 from transaction.cpp by reverting back to commit 942bc46.
2016-09-07 15:12:09 -07:00
Simon
82f3c490b1
Remove #1144 from transaction.h.
...
Reverts to 4bc00dc with commits f0dab51 (snark) and f5e5707 (joinsplit) retained.
GetTxid() is now an alias for GetHash().
2016-09-07 15:12:09 -07:00
bitcartel
8962f2a902
Update security-warnings.md about REST interface
2016-09-01 11:12:48 -07:00
bitcartel
6555546edf
Update payment-api.md
2016-08-30 19:57:16 -07:00
Simon
5d50130bc9
Closes #1315 . RPC getblocksubsidy height parameter is now optional and
...
a test has been added to verify parameter input and results.
2016-08-30 15:11:07 -07:00
Simon
1f882153b6
Throw a domain error as json_spirit is a third-party library.
2016-08-27 09:14:25 -07:00
Simon
df3af446e7
Fixes #1122 where json_spirit could stack overflow because there
...
was no maximum limit set on the number of nested compound elements.
2016-08-26 23:35:45 -07:00
Simon
d1f16ffe85
Fix formatting.
2016-08-24 21:47:46 -07:00
Simon
3bff998b38
Rename methods to avoid using prefix of _ underscore which is reserved.
...
Added logging of explicit exception rather than a catch all.
Removed redundant spending key check.
Updated user facing help message.
2016-08-24 11:55:26 -07:00
Simon
4b2e557181
Fix comments.
2016-08-24 11:19:34 -07:00
Simon
309b0ecd80
Add "zkey" to list of key types (used by the wallet to decide
...
whether or not it can be recovered if it detects bad records).
2016-08-24 11:19:34 -07:00
Simon
79d769a382
Remove one line of dead code.
2016-08-24 11:19:34 -07:00
Simon
2e0cc87acf
Fix comment.
2016-08-24 11:19:34 -07:00
Simon
badb9a9c2f
Add test coverage for RPC call z_getnewaddress.
2016-08-24 11:19:34 -07:00
Simon
60f762a549
Added wallet rpc tests to cover:
...
z_importwallet, z_exportwallet
z_importkey, z_exportkey
z_listaddresses
2016-08-24 11:19:34 -07:00
Simon
0feffd1424
Don't mark wallet as dirty if key already exists.
...
Fix incorrect method name used in error message.
2016-08-24 11:19:33 -07:00
Simon
4cea36bef3
Add gtest to cover new methods in:
...
CWallet
- GenerateNewZKey()
- AddZKey()
- LoadZKey()
- LoadZKeyMetadata()
CWalletDB
- WriteZKey()
2016-08-24 11:19:33 -07:00
Simon
e709997ff2
Implemented z_listaddresses to return all the zaddr in the wallet.
2016-08-24 11:19:33 -07:00
Simon
92444edc00
Add z_importwallet and z_exportwallet to handle keys for both
...
taddr and zaddr. Restore behaviour of dumpwallet and importwallet
to only handle taddr.
2016-08-24 11:19:33 -07:00
Simon
c1c4594371
Implemented RPC calls z_importkey, z_exportkey, z_getnewaddress.
...
Modified RPC calls dumpwallet and importwallet to include spending keys.
2016-08-24 11:19:33 -07:00
bitcartel
5f3f741e47
Add note about zkey and encrypted wallets in z9 alpha.
2016-08-23 15:33:05 -07:00
Simon
73f9e32b86
Closes #701 by adding documentation about the Payment RPC interface.
2016-08-23 00:37:43 -07:00
Simon
75c2f26887
Update variable.
2016-08-08 00:51:27 -07:00
Simon
822b84b616
Fixes #1193 so that during verification benchmarking it does not
...
unncessarily create thousands of CTransaction objects.
2016-08-07 23:57:39 -07:00
Simon
a8270035c0
Release process for z8. Issue #1140 .
2016-08-06 15:37:24 -07:00
Simon
2a7fde3f42
Add test for non-malleable txids. To run just this test:
...
./zcash-gtest --gtest_filter="txid_tests*"
2016-08-05 22:54:21 -07:00
Simon
fbd90518e3
Use -O1 opimitization flag when building libzcash.
...
Continuation of #1064 and related to #1168 .
2016-08-03 22:41:28 -07:00
Simon
74cd8821c7
Remove GetSerializeHash() method.
2016-07-29 23:28:34 -07:00
Simon
d81c31f5fb
Extend try catch block around calls to libsnark, per discussion in #1126 .
2016-07-29 00:02:22 -07:00
Simon
c63af91a78
Update comment.
2016-07-28 18:44:00 -07:00
Simon
3979881fc5
Fix comment.
2016-07-28 16:40:01 -07:00
Simon
eae3794152
Update deprecation message for zcraw api.
2016-07-27 21:40:26 -07:00
Simon
92f7426d19
Make txid const.
2016-07-27 12:14:44 -07:00
Simon
0ccb650b5a
Update genesis block hashes and test data.
2016-07-27 00:55:48 -07:00
Simon
90a9019387
Fix issue where a coinbase tx should have it's sigscript hashed
...
to avoid duplicate txids, as discussed in BIP34 and BIP30.
2016-07-27 00:52:27 -07:00
Simon
2481bab2b8
Revert "Set nLockTime in CreateNewBlock() so coinbase txs do not have the same txid."
...
This reverts commit 29306269f4 .
2016-07-27 00:41:26 -07:00
Simon
07e6d5b025
Refactor GetTxid() into UpdateTxid() to match coding style of hash member variable.
...
UpdateTxid() is called alongside UpdateHash() when a CTransaction is
deserialized or constructed. GetTxid() now returns a const reference.
2016-07-26 17:13:03 -07:00
Simon
29306269f4
Set nLockTime in CreateNewBlock() so coinbase txs do not have the same txid.
...
Update test data in miner_tests.
2016-07-26 17:13:03 -07:00
Simon
10d2c57c0d
Replace calls to GetHash() with GetTxid() for transaction objects.
...
Where the caller intends to receive a transaction id and not a double
SHA256 hash.
2016-07-26 17:13:03 -07:00
Simon
1e84d84d3a
Rename GetHash() method to GetSerializeHash().
...
When pulling from upstream we are now forced to examine GetHash() usage
and replace with GetSerializeHash() if the caller wants a double SHA256
hash, or with GetTxid() if the caller wants a transaction id.
2016-07-26 17:09:27 -07:00
Simon
3574c9251f
Updated test data for script_tests by uncommenting UPDATE_JSON_TESTS flag.
2016-07-26 17:09:27 -07:00
Simon
b742003ee9
Update block and tx data used in bloom filter tests.
2016-07-26 17:09:27 -07:00
Simon
2b9130cd1f
Update precomputed equihash solutions used in test.
2016-07-26 17:09:27 -07:00
Simon
a2cf219581
Update genesis blocks.
2016-07-26 17:09:27 -07:00
Simon
49689a574c
Add GetTxid() which returns a non-malleable txid.
2016-07-26 17:09:27 -07:00
Simon
a24a2e1144
Inform user that zcraw... rpc calls are being deprecated.
2016-07-24 10:05:20 -07:00
bitcartel
85cc6f5b44
Update tor.md for Zcash
2016-07-19 12:48:09 -07:00
Simon
939aaeb620
New alert test data generated for new alert key pair.
...
Added test fixture to create new test data.
Added instructions for developer.
2016-07-17 12:36:26 -07:00
Simon
9be2f85c22
Remove QT alert message box.
2016-07-16 13:18:42 -07:00
Simon
7af996b263
Update URL for zcash alert IDs.
2016-07-16 13:17:47 -07:00
Simon
656a5f0b6f
Update alert protocol version comment.
2016-07-16 08:18:58 -07:00
Simon
2e6f1f8de9
Update alert ID start value and URL in comment.
2016-07-16 08:17:56 -07:00
Simon
8e77a067ef
Update comments.
2016-07-16 08:12:19 -07:00
Simon
acefacf1b9
Disable QT alert message.
2016-07-16 08:03:36 -07:00
Simon
b39e1bdbca
Fixes to integrate sendalert.cpp.
...
Add sendalert.cpp to build process.
Add alertkeys.h as a placeholder for private keys.
2016-07-15 19:57:55 -07:00
Simon
2513363e81
Add sendalert.cpp to repo.
2016-07-15 18:05:42 -07:00
Simon
174a68b3b7
Use new public/private key pairs for alert system.
2016-07-15 18:03:30 -07:00
Simon
ea26d328fc
Add founders reward to output.
2016-07-14 13:08:34 -07:00
Simon
933bff472d
Narrow scope of lock.
2016-07-11 22:01:15 -07:00
Simon
1db13d5063
Replace index with height in help message for getblocksubsidy RPC call.
2016-07-11 21:53:09 -07:00
Simon
1b114e54c4
Add getblocksubsidy RPC command to return the block reward for a given
...
block, taking into account the mining slow start.
2016-06-27 13:04:33 -07:00
Simon
5dad8f569d
Disable USE_ASM when building libsnark (issue 932).
2016-06-20 15:18:15 -07:00
Simon
dca3af5bde
Update variable name.
2016-06-09 07:23:33 +08:00
Simon
574f0bca77
Update to DistinctIndices function (for issue #857 ).
...
Replaces pull request #974 .
2016-06-08 23:34:18 +08:00
Simon
edab3ddd2e
Implement issue #997 to reduce time for test_bitcoin due to sleeps in
...
addrman. Related to issue #717 .
2016-06-06 17:11:15 +08:00
Simon
17c4c0db48
Remove Bitcoin mainnet seeds.
2016-05-27 11:37:41 -07:00
Simon
1cf94c69e8
Remove Bitcoin testnet seeds.
2016-05-25 17:00:44 -07:00
Simon
0dd2bf94dd
Declare constants for the maximum number of retries, when to sleep
...
between retries and how long for.
2016-05-24 23:56:31 -07:00
Simon
b0f75847ea
Fix issue #717 where if addrman is starved of addresses (e.g. on testnet)
...
the Select_() function will loop endlessly trying to find an address,
and therefore eat up 100% cpu time on the 'opencon' thread.
Solution is to (1) add a delay to the loop and (2) restrict the number
of attempts to find an address. On exiting the loop, we return
to an outer loop in net.cpp which will sleep, add seed nodes and
calcualte new addresses.
2016-05-13 16:00:22 -07:00