Simon
3fd5a615ac
Coinbase utxos can only be spent when sending to a single zaddr.
Change from the transaction will be sent to the same zaddr.
8 years ago
Simon
008fccfa48
Disable option to allow multiple async rpc workers.
8 years ago
Simon
14af21e9f7
Add chaining of JoinSplits within a transaction.
8 years ago
Simon
c1eae2806c
Closes #1293 by adding z_getoperationresult and making z_getoperationstatus idempotent.
8 years ago
Simon
3b54bf5813
Refactoring and small improvements to async rpc operations.
Added AsyncRPCQueue::closeAndWait() so rpcserver can block on worker threads when shutting down.
AsyncRPCOperation is no longer copyable - copy constructor and assignment operators now private.
Refactoring: renamed methods, renamed member variables
Tidy up: comments, const, size_t, braces
8 years ago
Simon
34f0001ccc
Implement RPC call z_listoperationids and update z_getoperationstatus to take a list parameter.
8 years ago
Simon
861513a01f
Add public method to AsycnRPCQueue to retrieve all the known operation ids.
8 years ago
Simon
c72a427274
Add public method to get state as a human readable string from an AsyncRPCOperation.
8 years ago
Simon
15d345466d
Successful result of z_sendmany returns txid so it doesn't need to return raw hex.
8 years ago
Simon
b7d7b2ad9d
z_sendmany from a taddr now routes change to a new address instead of back to the sender's taddr,
8 years ago
Simon
4876de6c6d
Update find_unspent_notes() as mapNoteAddrs_t has been replaced by mapNoteData_t.
8 years ago
Simon
dafb81614b
Implement z_sendmany RPC call.
Simple implementation does not try to optimize coin or note selection.
Caller can send from a taddr or zaddr to multiple recipients.
Currently only one of the recipients can be a zaddr.
8 years ago
Simon
4eb1a96f9a
Add public field 'memo' to JSOutput to enable creation of notes with custom memos.
8 years ago
Simon
8d08172d0d
Add config option 'rpcasyncthreads' to specify number of async rpc workers. Default is 1.
8 years ago
Simon
2e6321a154
Add prefix to async operation id so it is easier to manage on cli.
8 years ago
Simon
fc72c078be
Add async RPC queue and operation classes.
Add z_getoperationstatus RPC command.
Add z_sendmany RPC command (dummy implementation, does not send actual
coins).
8 years ago
Jack Grigg
289b12e448
Add tests for refactored wallet code
8 years ago
Jack Grigg
ac1c94350d
Refactor wallet note code for testing
8 years ago
zkbot
2271d3feda
Auto merge of #1338 - str4d:147-tweak-difficulty-adjustment-algorithm, r=ebfull
Tweaks to difficulty adjustment algorithm
This PR changes the difficulty algorithm to adjust from the average difficulty over the
block window instead of from the last difficulty. It also removes the special rules for the
testnet, which are incompatible with difficulty averaging.
Closes #147 again.
8 years ago
zkbot
0372ce1f92
Auto merge of #1355 - bitcartel:zc.v0.11.2.latest_paymentapi, r=ebfull
Update payment API documentation for beta 1
Remove 'not in alpha 9' labels as RPC calls are now implemented.
8 years ago
Jack Grigg
622ced8a74
Adjust test to account for integer division precision loss
8 years ago
Jack Grigg
4b37cfd5b8
Remove unnecessary method
8 years ago
bitcartel
4ab24d3625
Update payment API documentation for beta 1
8 years ago
Jack Grigg
aea79ec053
Adjust test to avoid spurious failures
Previously, if the two random numbers happened to be equal, the block time
would not be updated, and subsequent checks would fail.
8 years ago
Simon
fa511e1084
Replace GetTxid() with GetHash() after rebase on latest.
8 years ago
Simon
33264f5b46
Remove GetTxid() from CTransaction and update test_txid
8 years ago
Simon
805344dcf4
Refactor: replace calls to GetTxid() with GetHash()
8 years ago
Simon
6c79b9a12a
Update txid gtest to verify #1144 has been removed: GetTxid() and
GetHash() return the same result.
8 years ago
Simon
a64f681f2c
Remove #1144 from input data of script_tests.
Revert script_invalid.json to commit df1609f
.
Revert script_valid.json to commit 1c54757
.
8 years ago
Simon
5316bd3560
Remove #1144 from bloom_tests by reverting to commit 5012190
.
8 years ago
Simon
3bdb071cc3
Remove #1144 from transaction.cpp by reverting back to commit 942bc46
.
8 years ago
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().
8 years ago
zkbot
02932fc9cc
Auto merge of #1341 - ebfull:fix-checktransaction-bug, r=ebfull
Fix CheckTransaction bugs.
Closes #1319 .
Does not address the name of `vpub_old` or `vpub_new`.
8 years ago
Sean Bowe
a4b00373ab
Fix transaction test in test_bitcoin.
8 years ago
zkbot
c5b5d50004
Auto merge of #1342 - ebfull:remove-todo, r=ebfull
Remove TODO 808.
Closes #1309 .
8 years ago
Jack Grigg
4a749674a8
Update tests for new genesis blocks
8 years ago
Jack Grigg
66f07f5d0d
Regenerate genesis blocks for new powLimits
8 years ago
Jack Grigg
3e24a533f5
Restrict powLimit due to difficulty averaging
8 years ago
Jack Grigg
7b173bd80f
Simplify difficulty averaging code
8 years ago
Jack Grigg
5fbb839f53
Add test of difficulty averaging
8 years ago
Jack Grigg
f50e8313f5
Remove accidental double-semicolon (harmless but odd)
8 years ago
Jack Grigg
8f3ec042af
Expand bounds on difficulty adjustment
8 years ago
Jack Grigg
cb708a99a5
Add comments explaining changed semantics of pow_tests
8 years ago
Sean Bowe
50aba0ec19
Remove TODO 808.
8 years ago
Sean Bowe
d7eeb7455b
Fix CheckTransaction bugs.
8 years ago
Sean Bowe
f6b6c9bed8
Update libsnark again.
8 years ago
Jack Grigg
333ea3c426
Remove testnet-only difficulty rules
The min-difficulty blocks are incompatible with difficulty averaging.
Network difficulty is also now defined as the difficulty the network is
currently working to solve, rather than the last non-min-difficulty block
difficulty.
8 years ago
Jack Grigg
29842505cc
Adjust from average difficulty instead of previous difficulty
8 years ago
zkbot
b181f7032b
Auto merge of #1328 - bitcartel:zc.v0.11.2.latest_1298_rest_interface, r=ebfull
Update security-warnings.md about REST interface
Closes #1298
8 years ago
zkbot
485ace0a1b
Auto merge of #1311 - ebfull:cleanup-pp, r=ebfull
Deallocate the public parameters during Shutdown.
This also has it deallocated in `GenerateParams` and `test_bitcoin`. The virtual destructor probably isn't necessary but I added it just in case we need it some other time.
8 years ago