Commit Graph

240 Commits

Author SHA1 Message Date
jl777
d7a84c7458 Fix no entropy for dice bet 2018-08-22 04:51:44 -11:00
Jonathan "Duke" Leto
505634eeae Pass various internal dice errors back in JSON response 2018-08-22 17:07:04 +02:00
Jonathan "Duke" Leto
feff708dbe Merge remote-tracking branch 'origin/jl777' into cctests 2018-08-22 09:26:53 +02:00
Jonathan "Duke" Leto
a03146b340 Lots more error checking in rewards and dice 2018-08-22 09:26:37 +02:00
jl777
e222a19d4b Fix maxodds check 2018-08-20 08:46:12 -11:00
jl777
33f4e4925c Fix maxodds check 2018-08-20 08:32:00 -11:00
jl777
d930ed4f2e Unrevert 2018-08-20 02:27:11 -11:00
jl777
bc3419f06d Revert 2018-08-20 02:26:42 -11:00
jl777
76b729d246 Fix 2018-08-19 23:08:11 -11:00
jl777
cd98443d65 Syntax 2018-08-19 23:06:59 -11:00
jl777
60a91e3bd4 Change dice odds > 1 to match industry method
Get the first 5 nibbles < 1 million, mod it by 10000 and compare
against 1000/(odds+1)
2018-08-19 23:04:01 -11:00
jl777
9a813a0441 Test 2018-08-19 07:21:20 -11:00
jl777
c75d265250 Test 2018-08-19 07:19:25 -11:00
jl777
764eb2e5be +dice attack vector 2018-08-15 22:10:55 -11:00
jl777
e65c27b52e -print 2018-08-15 01:47:10 -11:00
jl777
815e9937bb Test 2018-08-15 01:39:51 -11:00
jl777
97e4544b10 Test 2018-08-15 00:33:12 -11: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
jl777
1da742e71e Test 2018-08-14 04:48:07 -11:00
jl777
2b4374d705 nValue 2018-08-14 03:45:58 -11:00
jl777
db871af56f Fix dice finish 2018-08-14 03:44:36 -11:00
jl777
0e03d55920 Fix dice finish 2018-08-14 02:18:44 -11:00
jl777
cb2ee04b35 Fix dice finish 2018-08-13 05:46:11 -11:00
jl777
a5a2c7cb3a Test 2018-08-13 03:16:59 -11:00
jl777
a4a96df9e5 Skip adding CC vin if CCchange is big enough 2018-08-13 03:15:16 -11:00
jl777
944aed48a8 Test 2018-08-13 03:12:15 -11:00
jl777
8608399cb5 Numvouts 2018-08-12 23:16:48 -11:00
jl777
7300a1c117 Constrain dice vins to be for exact plan 2018-08-12 23:14:56 -11:00
jl777
d043ec4f27 Non-consensus portion of dice bet fix 2018-08-11 09:16:43 -11:00
jl777
9a017060c0 +print 2018-08-11 09:08:34 -11:00
jl777
1ed46fb837 return("") for std::string 2018-08-10 05:16:48 -11:00
jl777
278a61fd5e uint64_t -> int64_t for coin values other than three 2018-08-09 19:23:40 -11:00
jl777
dec9218b77 Combat/endian.h 2018-08-03 22:57:45 -11:00
jl777
99c090d95e Fix edge case for maxodds 2018-08-03 03:07:01 -11:00
jl777
ebe7e27ada Fix timeout claim 2018-08-03 01:51:05 -11:00
jl777
b0becd6e7c Test 2018-08-02 23:32:03 -11:00
jl777
8e3c66caf9 Test 2018-08-02 23:09:42 -11:00
jl777
da07d84b84 Implement dice timeout 2018-08-02 23:02:51 -11:00
jl777
8132e08781 Add back join split in decoderawtransaction 2018-08-02 21:33:06 -11:00
jl777
fba740ea43 Test 2018-08-02 05:30:37 -11:00
jl777
d4c70c4f7a Funding plan creator to auto create entropy tx on dice status 2018-08-02 05:24:47 -11:00
jl777
221972777d Test 2018-08-02 05:13:18 -11:00
jl777
096cfeb8a3 Test 2018-08-02 04:33:18 -11:00
jl777
50854c787b Test 2018-08-02 04:23:36 -11:00
jl777
510d6d5c5e Status 2018-08-02 04:21:32 -11:00
jl777
d74d791ae0 Test 2018-08-02 04:07:15 -11:00
jl777
1fadc7992c Test 2018-08-02 03:57:55 -11:00
jl777
9cd014a973 Test 2018-08-02 03:55:02 -11:00
jl777
6555bf3aa4 Test 2018-08-02 03:51:42 -11:00
jl777
846c9eb9bf Test 2018-08-02 03:50:46 -11:00