Commit Graph

22197 Commits

Author SHA1 Message Date
Homu
cd0484e023 Auto merge of #3350 - str4d:rpc-reorg, r=bitcartel
RPC code refactor

Cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#7307
- bitcoin/bitcoin#7348
- bitcoin/bitcoin#7766
2018-07-18 12:10:55 -07:00
jl777
564399152b Merge pull request #774 from jl777/example0
initial core support for assets
2018-07-18 06:21:42 -11:00
Wladimir J. van der Laan
a9496b08b6 rpc: Register calls where they are defined
Split out methods to every module, apart from 'help' and 'stop' which
are implemented in rpcserver.cpp itself.

- This makes it easier to add or remove RPC commands - no longer everything that includes
    rpcserver.h has to be rebuilt when there's a change there.
- Cleans up `rpc/server.h` by getting rid of the huge cluttered list of function definitions.
- Removes most of the bitcoin-specific code from rpcserver.cpp and .h.

Continues #7307 for the non-wallet.
2018-07-18 11:07:18 -06:00
Daniel Cousens
4b184205e3 rpc: update inline comments to refer to new file paths 2018-07-18 11:07:17 -06:00
Daniel Cousens
4519a766b6 move rpc* to rpc/ 2018-07-18 11:07:16 -06:00
Jonas Schnelli
34aca1b03c [RPC, Wallet] Move RPC dispatch table registration to wallet/ code
Allow extending the rpc dispatch table by appending commands when server is not running.
2018-07-18 11:07:15 -06:00
jl777
618150c83e Use scriptPubKey.IsPayToCryptoCondition() 2018-07-18 05:31:39 -11:00
jl777
4ed779073d Test 2018-07-18 05:10:17 -11:00
jl777
a9e904d9dd Fix 2018-07-18 05:08:55 -11:00
jl777
0ce374b7c7 Remove height triggers and add PoWtarget in getblocktemplate 2018-07-18 05:04:15 -11:00
Duke Leto
3350160a6c Fix bug where finding index entries of other types, such as timestampindex, stopped our iterator 2018-07-18 16:02:53 +00:00
Homu
aad4b86e95 Auto merge of #3376 - LarryRuane:2728-help-message-experimental, r=bitcartel
add extra help how to enable experimental features

Closes #2728. When the user attempts to execute a disabled experimental RPC, print some nice text explaining how to enable the RPC (either command-line or adding lines to zcash.conf).
2018-07-18 07:45:46 -07:00
jl777
1bdde735e6 Fix 2018-07-18 03:12:58 -11:00
jl777
47966c7b16 Test 2018-07-18 03:12:05 -11:00
jl777
ff9f2c350b Fix 2018-07-18 03:09:17 -11:00
jl777
2abababa75 Test 2018-07-18 03:06:22 -11:00
jl777
f345b95386 Initial assets 2018-07-18 03:02:37 -11:00
jl777
ee79b651a9 Merge branch 'jl777' into example0 2018-07-18 01:16:16 -11:00
jl777
ec9d69d799 Merge pull request #773 from Alrighttt/dev
change zcashd reference, update example conf
2018-07-17 21:44:57 -11:00
jl777
79f49ac49f Merge pull request #772 from letolabs/snapshot
getsnapshot RPC
2018-07-17 21:43:14 -11:00
Duke Leto
9ef7fec1ef Protect komodo_snapshot() by cs_main lock 2018-07-18 06:54:43 +00:00
Duke Leto
5685e88a47 Merge remote-tracking branch 'origin/jl777' into snapshot 2018-07-18 06:48:33 +00:00
Alrighttt
4ac134db0c change zcashd reference, update example conf 2018-07-18 02:34:10 -04:00
Homu
cc9cddbf49 Auto merge of #3371 - kozyilmaz:clang, r=str4d
Add -Wl,-pie linker option for macOS and use it instead of -pie

fixes linker error (see below) due to "-pie" usage, replaced it with "-Wl,-pie" for macOS platform
```
clang: error: argument unused during compilation: '-pie' [-Werror,-Wunused-command-line-argument]
```
2018-07-17 21:41:36 -07:00
Homu
efa7b914fb Auto merge of #3243 - pejvan:patch-1, r=bitcartel
Update README.md

Added default options to build zcash with as many parallel compilation units as there are cpu cores.
This makes compiling zcash multiple times faster.
2018-07-17 19:57:32 -07:00
Duke Leto
539080b3a4 Less noise to stderr 2018-07-17 22:33:19 +00:00
Duke Leto
3eb535b8b4 Include start_time+end_time and correctly format amount 2018-07-17 22:31:06 +00:00
Homu
b9bd5ab42c Auto merge of #3354 - leto:absurd_fee_bug, r=bitcartel
Fix absurd fee bug reported in #3281, with tests

This was ported from the Hush `absurd_fee_bug` PR: https://github.com/MyHush/hush/pull/136

Tests executed with `./qa/pull-tester/rpc-tests.sh wallet` and pass on Ubuntu 16.04. Some tests were added for previously untested behavior as well.

Closes #3281.
2018-07-17 15:03:08 -07:00
Duke Leto
6e74fd2578 In memory sorting, add a few metadata fields; printing small floats correctly still not working 2018-07-17 21:37:52 +00:00
Simon
687bd96cbd Minor update to address nits in review. 2018-07-17 14:26:38 -07:00
Homu
3835cbb57f Auto merge of #3263 - str4d:ibd-upstream-changes, r=bitcartel
InitialBlockDownload upstream changes

Cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#7208
- bitcoin/bitcoin#8007
- bitcoin/bitcoin#9053
  - Excluding second commit (requires bitcoin/bitcoin#8865)
- bitcoin/bitcoin#10388
2018-07-17 13:17:27 -07:00
Simon
0b6eeac330 Update and fix per review comments, the test for absurd fee. 2018-07-17 13:00:42 -07:00
Duke Leto
29a5aa99fd Move address+amount data to addresses key in JSON; add some useful metadata to snapshot response 2018-07-17 19:39:55 +00:00
Duke Leto
92dc28a3c9 Return snapshot info as JSON 2018-07-17 18:42:30 +00:00
Homu
13b41a6760 Auto merge of #3156 - Eirik0:2935-change-indicator, r=bitcartel
Add change indicator

This adds to the json returned when calling z_listreceivedbyaddress and z_listuspent an additional field entitiled 'change' which will be either true or false depending on whether or not the note was change from another transaction.
2018-07-17 11:41:03 -07:00
jl777
3872e9cb59 Fix 2018-07-17 05:29:01 -11:00
jl777
7000ef1af3 Possible workaround for crash 2018-07-17 05:26:34 -11:00
Pejvan
642f3681ca Update README.md
updated to use parenthesis as suggested by @bitcartel
2018-07-17 13:08:54 +02:00
Duke Leto
920f960122 Correctly print out snapshot data to stderr for now 2018-07-17 06:05:36 +00:00
David Dawes
0febe8813b Merge branch 'dave-dev' of https://github.com/VerusCoin/VerusCoin into dave-dev 2018-07-16 23:02:26 -07:00
David Dawes
303c530392 Remove undef __cpuid 2018-07-16 23:02:22 -07:00
Larry Ruane
66dfcc1369 add extra help how to enable experimental features 2018-07-16 21:31:55 -06:00
Duke Leto
d62d9d7889 Almost working snapshot, we need to sum unspent outputs for each address and return to final snapshot data in json response 2018-07-17 01:40:24 +00:00
Sean Bowe
f23e783600 Decryption and tests of note/outgoing encryption. 2018-07-16 18:34:14 -06:00
Homu
ea0bd9d3b8 Auto merge of #3345 - str4d:sapling-z_validateaddress, r=bitcartel
Add Sapling support to z_validateaddress

Part of #3217.
2018-07-16 15:04:54 -07:00
Eirik Ogilvie-Wigley
62d707d1fd Fix test broken by change indicator 2018-07-16 14:50:06 -06:00
Eirik Ogilvie-Wigley
0646f749f9 Add change indicator for notes 2018-07-16 14:49:29 -06:00
Homu
b7d058cef3 Auto merge of #3334 - arielgabizon:add_groth_tests, r=bitcartel
Extend JoinSplit tests to Groth

As we now have both PGHR and Groth proofs for Sprout - make the joinsplit tests check the Groth proofs as well.
See https://github.com/zcash/zcash/issues/3266
2018-07-16 12:11:12 -07:00
jl777
17839698a3 block_from_future_rejecttime used in RAMstaker 2018-07-16 00:55:48 -11:00
jl777
9dd520572a Merge pull request #771 from jl777/dev
Dev
2018-07-16 00:14:00 -11:00