Commit Graph
30 Commits
Author SHA1 Message Date
Duke Leto d61784c949 Custom asset chain client names (#1338)
* Allow setting client name via cli

* Add util.h for GetArg
2019-03-20 09:03:41 -11:00
Duke Leto 2a3d132b55 Show foundersreward in getblocktemplate if ac_founders enabled (#1334) 2019-03-15 07:28:39 -11:00
Duke Leto 02961a91e4 Port getchaintxstats from BTC master (#1328)
This will allow explorers to present interesting analytics about
transaction volume in various time frames.
2019-03-11 02:46:22 -11:00
Duke Leto c4e7d1f436 Add help docs for all -ac_* params of komodod (#1313) 2019-03-06 02:10:01 -11:00
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
Duke Leto f1e1ea6133 WIP add 'top N only' feature to gensnapshot rpc 2018-07-23 04:33:47 +00:00
Duke Leto 1aa7af1794 Allow certain addresses to be ignored in snapshot 2018-07-20 05:01:07 +00:00
Duke Leto 70748123a9 Sort addresses by amounts in descending order 2018-07-20 04:40:34 +00:00
Duke Leto c4a73444de Fix bug where some addresses are lost in sorting by using a vector instead of set and avoiding custom comparison function 2018-07-20 03:58:05 +00:00
Duke Leto 20ba439d05 Add number of utxos to metadata in json response 2018-07-19 05:37:27 +00:00
Duke Leto a4d41984f6 Modify how we iterate and deal with the end of iteration, since iter->Valid seems to always be true 2018-07-18 19:44:16 +00: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
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
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
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
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
Duke Leto 920f960122 Correctly print out snapshot data to stderr for now 2018-07-17 06:05:36 +00: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
Duke Leto 3bd2c3bd6a Fix progress estimate for asset chains, mostly 2018-07-16 07:57:56 +00:00
Duke Leto cbce9f1f65 WIP debugging why leveldb iterator is broke 2018-07-14 23:00:09 +00:00
Duke Leto 4b8c52c65c Improve error message 2018-07-14 05:16:28 +00:00
Duke Leto 75bb5f94f4 Update comment as per @arielgabizon 2018-07-13 19:19:16 +00:00
Duke Leto e5aa9f617b Fix absurd fee bug reported in #3281, with tests 2018-06-22 05:20:45 +00:00
Duke Leto 8f41e1da19 yes 2018-03-24 15:41:18 +00:00
Duke Leto 70df47b78b Correct ports in manpages 2018-03-04 06:43:17 +00:00
Duke Leto b65ba237f2 Update kmd man pages with bash contrib/devtools/gen-manpages.sh 2018-03-04 04:35:06 +00:00
Duke Leto e78e9fa3e3 Update manpages script for komodo 2018-03-04 04:33:53 +00:00