Commit Graph

517 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
blackjok3r
7309367c04 fix & to &&! 2019-02-26 19:55:14 +08:00
blackjok3r
096d25df97 Disable all experminetal/LABS features that are not required. 2019-02-26 12:49:17 +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
528f39542e fix reorg problem 2019-02-09 00:08:28 +08:00
jl777
35daec70b1 ReacceptWalletTransactions don't remove from wallet if initial block download 2019-02-08 01:20:00 -11:00
blackjok3r
292edfb284 Merge branch 'FSM' of https://github.com/jl777/komodo into mastertest 2019-01-23 16:57:05 +08:00
jl777
7cfb6293c6 komodo_defs a lot more 2019-01-21 00:31:14 -11:00
jl777
cf9f6577fc Adjust assert 2019-01-13 14:10:11 -11:00
blackjok3r
a543b675f6 Merge branch 'FSM' of https://github.com/jl777/komodo 2019-01-10 02:25:59 +08:00
jl777
4f48570935 ; 2019-01-09 04:31:04 -11:00
jl777
2df13c428f Workaround for -maxreorg 2019-01-09 04:24:04 -11:00
blackjok3r
ff43475a31 Re-add txs that were removed from wallet, if they are valid. 2019-01-04 17:26:28 +08:00
blackjok3r
e93fd95815 Merge branch 'FSM' of https://github.com/jl777/komodo into ac_import 2019-01-02 23:29:52 +08:00
jl777
0ea9ae3c05 Update copyright to 2019 2018-12-31 21:41:05 -11:00
blackjok3r
7349a49641 Merge branch 'FSM' of https://github.com/jl777/komodo
fix
2018-12-13 12:40:53 +08:00
jl777
9742bb74db -prints 2018-12-10 11:48:48 -11:00
jl777
80be594638 -print 2018-12-10 11:47:18 -11:00
jl777
3b4ee13f94 Allow one change out in list transactions 2018-12-10 11:46:51 -11:00
jl777
181d6b33f3 +prints 2018-12-10 11:35:11 -11:00
jl777
7883afa7fe Print orderpos 2018-12-10 10:43:21 -11:00
jl777
2b66bcf247 Move prints 2018-12-10 10:37:13 -11:00
jl777
7c88285452 Fix 2018-12-10 10:26:19 -11:00
jl777
755e64a9af -> 2018-12-10 10:25:07 -11:00
jl777
fe0671145e Fix 2018-12-10 10:19:12 -11:00
jl777
80198244d4 New prints 2018-12-10 10:18:42 -11:00
jl777
54431fd74a Prevent height -> nLockTime 2018-12-08 01:33:23 -11:00
jl777
e34bb5163a Non-test code from: https://github.com/zcash/zcash/pull/3619 2018-12-05 01:14:05 -11:00
blackjok3rtt
857edc21a4 Merge pull request #52 from StakedChain/master
attempt wallet fix for empty vin issue
2018-12-01 14:07:02 +08:00
blackjok3r
a089187c44 attempt wallet fix for empty vin issue 2018-12-01 12:02:09 +08:00
blackjok3r
697eddcc79 Merge branch 'FSM' of https://github.com/jl777/komodo into jl777-FSM
merge
2018-11-29 23:22:32 +08:00
miketout
6e2a502b0e Merge of Komodo and Verus Technologies Post Sapling, Pre-VerusPoP with Support for Time locked coinbases 2018-11-14 16:40:10 -08:00
blackjok3r
bf554eb6cf remove print ... 0 sat coinbase ignore is working 2018-11-10 18:45:39 +08:00
blackjok3r
3ce2f4ec50 try ignore 0 sat coinbase 2018-11-10 18:19:01 +08:00
blackjok3r
0be25e9aca try this instead? 2018-11-07 18:06:58 +08:00
blackjok3r
6af23bd81d debug more 2018-11-07 18:01:28 +08:00
blackjok3r
d92a50e570 fix 2018-11-07 17:56:17 +08:00
blackjok3r
be7ce20da4 tets 2018-11-07 17:54:59 +08:00
blackjok3r
0920b59572 add min recv size and whitelist address 2018-11-07 17:27:57 +08:00
blackjok3r
6556f635f0 Add maximum priority for notarisations. 2018-11-05 23:35:28 +08:00
blackjok3r
068c48214d remove unneeded things 2018-11-05 15:36:47 +08:00
blackjok3r
f07284c682 Move 99% of staked notary code to its own file 2018-11-05 14:28:43 +08:00
blackjok3r
565a17dc86 try this please work 2018-11-04 15:53:30 +08:00
blackjok3r
793ebde434 fix 2018-11-03 18:42:13 +08:00
blackjok3r
20d6d16399 add -stakednotary daemon flag 2018-11-03 18:32:05 +08:00
blackjok3r
2a91d7e002 fix 2018-11-03 16:40:57 +08:00
blackjok3r
4d85706859 is this working now? 2018-11-03 16:35:51 +08:00
miketout
7a993143ef Set expiry on stake transactions to allow deletion from wallets later to avoid possible double stake 2018-11-02 12:49:36 -07:00
blackjok3r
85bbfadd2f attempt to add Raddress array 2018-11-02 18:40:04 +08:00
miketout
b276e36826 Avoid any potential double staking penalty that make occur during repeated reorgs 2018-11-02 03:05:51 -07:00