Commit Graph

920 Commits

Author SHA1 Message Date
Duke Leto
c99801952b Teach RPC interface about dpow-enabled minconfs (#1231)
* Make minconfs dpow-aware in z_listunspent + z_listreceivedbyaddress

* Add dpow-related test files to test suite

* Add dpow simulation to regtest every 7 blocks

* Fix compiler errors

* Fix link error

* Fix stdout spam when running regtests

* Dpowminconfs for listreceivedbyaddress

* dpowconfs tests

* Start adding specific tests for dpowminconfs in listreceivedbyaddress

* Get dpowminconfs tests for listreceivedbyaddress working

* Add dpowminconfs to getreceivedbyaddress + listunspent

* Add test for listtransactions + getreceivedbyaddress support

* Reliably passing dpowminconf tests. We only check for notarized-ness now, not exact confirmation numbers, to avoid race conditions

* Poll for the expected notarization info before running further tests; add support for getbalance

* Migrate tx_height() to a place where asyncrpcoperation_sendmany.cpp can use it

* fix

* Teach GetFilteredNotes about dpowconfs

Many RPCs rely on this internal function, which now correctly uses
dpowconfs to filter by the minconf/maxconf parameters.

* Fix sendmany when using non-default minconf

* inline seems to make things happy

* cleanup

* Add some code to test z_sendmany, which points out https://github.com/jl777/komodo/issues/1247

* try this

* Use already calculated value of dpowconfs instead of calculating it again
2019-03-03 12:27:50 -11:00
jl777
845ce0b543 Height 100 exception 2019-03-02 05:30:10 -11:00
jl777
c6322f54ec Test slowflag 2019-03-02 05:18:27 -11:00
jl777
3e889f3db0 -print 2019-03-01 08:57:28 -11:00
jl777
448ecdbdd1 +print 2019-03-01 08:51:11 -11:00
blackjok3r
142744f22d verushashv1_1, fix walletdb.h, proto version, cleanwallettransactions add 2019-02-26 17:35:07 +08:00
blackjok3r
e3495bf3e9 remove pointless things 2019-02-26 12:17:53 +08:00
blackjok3r
f76ceced5b make notarypay work with KMD notaries 2019-02-26 11:14:19 +08:00
blackjok3r
5e91fa1632 Merge branch 'FSM' of https://github.com/jl777/komodo into jl777-FSM 2019-02-26 09:42:51 +08:00
jl777
7cced97fb9 +print 2019-02-18 05:08:49 -11:00
blackjok3r
13012c169f Merge branch 'notarypay_new' 2019-02-18 19:26:50 +08:00
blackjok3r
cb5aa3c45c Merge branch 'FSM' of https://github.com/jl777/komodo into jl777-FSM 2019-02-18 19:09:54 +08:00
blackjok3r
791d8dc13b remove dynamic notary pay reward and revert to static amounts, cannot work! 2019-02-15 11:01:10 +08:00
blackjok3r
d7a122c548 fix reorged notarisation to use the same data points 2019-02-15 00:13:48 +08:00
blackjok3r
695eb871bb Fix miner 2019-02-14 19:52:58 +08:00
blackjok3r
498e6154a5 Add notarypay to eras, for main chain. 2019-02-14 16:46:15 +08:00
blackjok3r
f6a51145f5 New notary pay mechanisim... 2019-02-12 23:28:13 +08:00
jl777
cb5f7eaaa1 Auto broadcast rogue rpc tx 2019-02-09 21:55:50 -11:00
blackjok3r
528f39542e fix reorg problem 2019-02-09 00:08:28 +08:00
blackjok3r
170ca55e46 New miner, some prints. YUse equihash difficulty algo for VerusHash and PoS64 2019-02-07 17:07:49 +08:00
blackjok3r
cfef67c59b fix possible to choose more than 1 notarisation 2019-02-07 00:00:11 +08:00
blackjok3r
de0ced7444 Check for double signs on notarisation checks. revert minsigs to normal value. 2019-02-06 17:00:21 +08:00
jl777
dd8f2697b7 Many changes 2019-02-05 19:25:32 -11:00
blackjok3r
b9779b671c add LABST2 to block reward chains. Add exeption to verushash staker to increase staking diff in first 50 bocks. 2019-02-06 13:31:02 +08:00
blackjok3r
2863dbc6d4 Stop miner trying to mine invalid block. 2019-02-04 10:06:54 +08:00
blackjok3r
52f7cc2caf Add some better prints/comments, move ac_notarypay validation to before temp file fix, to aviod possible attack vector. 2019-02-03 12:10:26 +08:00
blackjok3r
c6e5b70f23 fix 2019-02-03 02:44:17 +08:00
blackjok3r
0ee5e12f08 New method of ac_notarypay 2019-02-03 02:37:04 +08:00
jl777
71742e5d56 J == n-1 2019-02-01 10:28:25 -11:00
jl777
00f7f545c9 Fix skip code for ac_perc 2019-02-01 10:27:47 -11:00
blackjok3r
1f62670ea2 See comment for test plan. Adds Validation 2019-02-01 16:47:43 +08:00
jl777
2ad90b9bd0 Skip staking utxo for ac_perc chains that stake 2019-01-30 21:42:29 -11:00
jl777
3ba832b6bc Pending object 2019-01-29 21:48:26 -11:00
blackjok3r
abb78c279f fix min sigs 2019-01-30 00:39:16 +08:00
blackjok3r
2cf2102887 -ac_notarypay 2019-01-30 00:33:08 +08:00
blackjok3r
4f212c841d Fix floating point exception. Problem was POW target trying to calculate when not all blocks avalible. These changes leave us even more open to PoS attack, we need to get temp block file working as soon as we can. 2019-01-28 16:13:25 +08:00
blackjok3r
3da846ce85 Merge branch 'FSM' of https://github.com/jl777/komodo 2019-01-26 15:59:29 +08:00
blackjok3r
0875e0ecf1 fix setgenerate false 2019-01-26 02:52:54 +08:00
blackjok3r
e9bd3e1d67 try change version 2019-01-25 23:44:04 +08:00
blackjok3r
d5b76cee9d try fix extralen bug. Add is_STAKED == 2 to have a consensus block reward of 0. 2019-01-25 19:59:42 +08:00
blackjok3r
b984401e96 add ca333's Makefile, change depend to hardcoded berkely DB in depnds folder. Add exception for COINABSE_MATURITY =1 for all LABS chains. 2019-01-25 16:18:00 +08:00
blackjok3r
1fb9fd6ba7 fix equihash chain sync. 2019-01-24 00:08:04 +08:00
blackjok3r
bf726a2c03 Merge branch 'new_staker' into mastertest 2019-01-23 17:46:36 +08:00
blackjok3r
292edfb284 Merge branch 'FSM' of https://github.com/jl777/komodo into mastertest 2019-01-23 16:57:05 +08:00
blackjok3r
a0427ebf79 ac_founders_reward fix 2019-01-23 15:01:08 +08:00
blackjok3r
eb164bc03c ok 2019-01-23 13:57:04 +08:00
blackjok3r
91e94ab8cd Merge branch 'new_staker' into ac_founders_reward 2019-01-23 13:55:57 +08:00
blackjok3r
bbf756704f clean up 2019-01-23 13:54:09 +08:00
blackjok3r
7167793dbf new version 2019-01-23 02:50:53 +08:00
jl777
8496dc63a4 -print 2019-01-21 23:44:38 -11:00