Commit Graph
1488 Commits
Author SHA1 Message Date
jl777 26ca942ec5 Feature complete oracles CC 2018-09-03 03:06:45 -11:00
Jack Grigg 70b4ad2dcd wallet: Switch from SaplingSpendingKey to SaplingExtendedSpendingKey
The wallet now only stores Sapling extended spending keys, and thus can
only be used with keys generated from an HDSeed via ZIP 32.

Note that not all Sapling keys in the wallet will correspond to the
wallet's HDSeed, as a standalone Sapling xsk can be imported via
z_importkey. However, it must have been generated from a seed itself,
and thus is more likely to be backed up elsewhere.
2018-09-03 10:45:37 +01:00
Jack Grigg 7c02acc5b6 Minor cleanups 2018-09-03 01:28:31 +01:00
jl777 3d6ee3e028 Test 2018-09-02 04:36:44 -11:00
jl777 366625ca23 Initial oracles CC without validation 2018-09-02 03:40:52 -11:00
jl777 9a44d9ea32 Merge branch 'jl777' into FSM
# Conflicts:
#	src/cc/rewards.cpp
#	src/main.cpp
2018-08-31 22:07:10 -11:00
jl777 2b349eff8c Fix 2018-08-31 01:37:27 -11:00
jl777 3737d4569a Fix 2018-08-31 01:36:48 -11:00
jl777 02da4225f4 Payment/collect for channels 2018-08-31 01:27:23 -11:00
Anton Lysakov bad5d1c3bd Validate plan name for Rewards CC 2018-08-31 17:00:27 +07:00
Jonathan "Duke" Leto fde85d291f Add some helpful error messages for when Diceinit fails 2018-08-30 10:56:06 +02:00
Jack Grigg 07d85a6455 Define additional booleans for readability 2018-08-30 09:42:21 +01:00
jl777 54690bb04e Channelsinfo stub 2018-08-29 01:17:57 -11:00
jl777 11020cf22c Test 2018-08-28 03:00:53 -11:00
jl777 cafa63fb2b Fix 2018-08-28 02:42:02 -11:00
jl777 810f63668c Channelsopen 2018-08-28 02:18:04 -11:00
Jack Grigg e54c4d2ca1 rpcwallet: Add Sapling support to z_sendmany 2018-08-27 11:36:14 +01:00
Jack Grigg af4057b904 rpcwallet: Prevent use of both Sprout and Sapling addresses in z_sendmany 2018-08-27 11:13:49 +01:00
Jack Grigg 36e2141d92 rpcwallet: Add TransactionBuilder argument to AsyncRPCOperation_sendmany 2018-08-27 11:13:49 +01:00
Jonathan "Duke" Leto 8200435363 Validate plan name in dicebet 2018-08-27 00:57:29 +02:00
Jonathan "Duke" Leto 124819cef5 Lots of error checking improvements and more passing tests 2018-08-27 00:55:53 +02:00
Homu c53884d20a Auto merge of #3436 - str4d:3214-z_getbalance, r=str4d
Add Sapling support to z_getbalance and z_gettotalbalance

Also includes preparatory changes for various other RPCs that depend on `GetFilteredNotes` etc.

Closes #3214.
2018-08-24 21:01:53 -07:00
jl777 7cb141476c Merge branch 'jl777' into FSM
# Conflicts:
#	src/main.cpp
2018-08-24 14:02:07 -11:00
Jack Grigg 573de712ab rpc: Clarify ivk balance issues in help text 2018-08-25 01:09:12 +01:00
Anton Lysakov fd2fd9a7e5 Errors printout define moved to wallet.h 2018-08-25 03:59:03 +07:00
jl777 01801559dc Bigger KV bugs 2018-08-24 07:36:47 -11:00
jl777 cccd779df5 Merge branch 'jl777' into FSM
# Conflicts:
#	src/cc/CCinclude.h
2018-08-24 00:40:04 -11:00
Homu 582ca87bd4 Auto merge of #3451 - zancas:master, r=daira
Revise help output for z_sendmany

The previous version of the usage message for z_sendmany used the word "Change"
in an ambiguous way.

The intent was to describe "Change" the noun that indicates the portion of a
transaction's funds that are returned to the payer, however the context did not
provide an immediate cue to differentiate from the verb form meaning
"to alter".  Indeed, in other help strings in the same file that meaning of the
word is correct, i.e. the verb form is used.  Moreover a typo in the form of a
missing "a" later in the same sentence exacerbated the problem, by decreasing
readability precisely where context could reduce confusion.
2018-08-23 11:23:23 -07:00
jl777 eb4cf14d40 Tweak message 2018-08-22 08:07:52 -11:00
jl777 eafcb94140 CCerror = ""; 2018-08-22 07:57:48 -11:00
jl777 d9de81b4b5 Merge branch 'jl777' into FSM 2018-08-22 04:51:20 -11:00
Jack Grigg d316992f55 rpc: Clarify Sprout shielded addresses in help text 2018-08-22 12:33:30 +01:00
Jonathan "Duke" Leto a03146b340 Lots more error checking in rewards and dice 2018-08-22 09:26:37 +02:00
jl777 aed3f98794 Update CC privkeys 2018-08-21 09:21:51 -11:00
jl777 c926780fba Rest of second wave CC contract stubs 2018-08-21 08:58:19 -11:00
jl777 287a373a05 +channels 2018-08-21 08:20:32 -11:00
jl777 b3965baaf2 Test 2018-08-21 08:03:35 -11:00
jl777 da629dfe5a MofN address 2018-08-21 04:40:10 -11:00
Jack GriggandSean Bowe 053cb3497d Add Sapling support to z_getbalance and z_gettotalbalance
Closes #3214

Co-authored-by: Sean Bowe <ewillbefull@gmail.com>
2018-08-20 11:35:06 +01:00
Jack GriggandSean Bowe 94e99acda6 Add Sapling support to GetFilteredNotes() and GetUnspentFilteredNotes()
This could in future be refactored to be generic over PaymentAddress and
NotePlaintext in the return type, but for now let's be explicit about which
returned notes are for Sprout vs Sapling, and handle them separately.

Co-authored-by: Sean Bowe <ewillbefull@gmail.com>
2018-08-20 11:34:54 +01:00
Jonathan "Duke" Leto e4f4e63bf5 Merge remote-tracking branch 'origin/jl777' into cctests
Tests failing right now due to change in behavior:

CC Eval EVAL_FAUCET Invalid: faucet is only for brand new addresses
2018-08-16 17:40:57 +02:00
Jonathan "Duke" Leto 8a3e1884d6 More token tests and more error checking and better errors from internals 2018-08-16 17:17:54 +02:00
jl777 4d47fcb937 Create nonzero tokens 2018-08-16 01:07:44 -11:00
jl777 f6160f58c1 Add rpc error checking 2018-08-16 01:06:06 -11:00
Jonathan "Duke" Leto 8e0ff2b732 Test refactoring, more tests, and lots of error checking improvements and uint64_t fixes 2018-08-15 23:24:59 +02:00
jl777 6ca2e99883 Backwards compatibility breaking changes
Assets:
change tokeninfo to return "supply" in satoshis
Max description length to 4096

Rewards:
Fix  rewardsunlock without giving it a locked txid always gives error
Fix (nonconsensus) allow anybody to unlock only AFTER maxtime
Fix rewards unlock to use mempool
fix could you add a locked_funds value to rewardsinfo?
Fix i deposited 100000 at 20% apr for one day i only got back
100000.01140669 seems like too little for 20% APR

Faucet:
Fix txid with 0x00 at beginning and end required for faucetget txid
(65536 average iterations needed)
Change reduce faucet get to 0.1 coins
Can’t reproduce: it seems that if you re-run faucetget twice in the
same block is when it pegs the cpu to max

Dice:
fix Dice status always returning loss
Wont fix Profit margin for dice plan sounds good. -> use -ac_commission
2018-08-15 00:18:13 -11:00
Jack Grigg 554e00e8f9 Disable Sapling features on mainnet
Also places them behind an experimental features flag on testnet
2018-08-13 14:18:18 +01:00
Jonathan "Duke" Leto 66027c0219 Add rewards tests 2018-08-13 09:55:17 +02:00
Jonathan "Duke" Leto 88e714577b More rewards tests 2018-08-11 16:47:24 +02:00
Jonathan "Duke" Leto 9b30af9799 Fix bug in FaucetGet where it returns an int instead of a string 2018-08-10 18:10:21 +02:00