Commit Graph

386 Commits

Author SHA1 Message Date
jl777
caeb613e0b Print target 2019-08-05 07:17:04 -11:00
jl777
fd28ee9c66 Return result 2019-08-05 07:15:49 -11:00
jl777
4a09f0d13e No args 2019-08-05 07:13:34 -11:00
jl777
8e2fc1c6d9 /tmp/mining.csv 2019-08-05 07:10:50 -11:00
jl777
69f87c00ad ; 2019-08-05 07:04:30 -11:00
jl777
3ff34c97cc CBlockIndex *komodo_chainactive(int32_t height); 2019-08-05 07:03:47 -11:00
jl777
e9cdff1a28 genminingCSV 2019-08-05 07:00:28 -11:00
jl777
23ca86df3a Zawys new algo
1) FTL 4 seconds
2) MTP from 11 -> 1
3) must calc MAX(diff[I]) for past 11 blocks
4) bnTarget *= mult*mult
5) bnTarget.nBits -> onchain
2019-08-01 09:14:07 -11:00
jl777
a74bd537a4 .GetHex() 2019-07-31 21:22:17 -11:00
jl777
75c034113e Calculate correct target in getblocktemplate for adaptivepow 2019-07-31 21:20:58 -11:00
jl777
0454333ff8 Tristate KOMODO_NSPV 2019-07-30 05:11:57 -11:00
Mihailo Milenkovic
bc665882ed nSPV modifications for CC and other fixes (#29) 2019-07-24 16:33:03 +02:00
jl777
94294cbee6 Merge branch 'jl777' into nSPV 2019-07-17 19:06:48 -11:00
jl777
d2f4ef0519 Merge pull request #1622 from DeckerSU/patch-createrawtransaction
createrawtransaction enchancement
2019-07-17 19:03:35 -11:00
DeckerSU
2b799143f8 createrawtransaction enchancement
- allowing create OP_RETURN vouts (field "data" in "outputs" json)
- allowing using script (hex), in "outputs" (for example, you can use any P2PK, P2PKH or P2SH script as destination)
- advanced duplicates checking (users can't use same destination in various forms, for example, you can't make one vout as address and second vout, same address, but coded with P2PK script)
- allowing to bypass duplicates check for notaries (for example, to manually create splitfunds txes, using daemon RPC only), for common users it's forbidden

Useful usage:

Don't forget that you can create raw transaction with empty vins, like

createrawtransaction "[]" "{\"RKZWgNw9rvMJCHeD6mFgFNrJGxCoT2bft1\":0.777}"

and then fund it (with vins) using fundrawtransaction.

Duplicates testing vectors (passed):

createrawtransaction "[]" "{\"RKZWgNw9rvMJCHeD6mFgFNrJGxCoT2bft1\":0.777,\"2102c42516ab9b0958f349783222c8b665314ce0f12ae513af1c15e10e8045b87544ac\":0.01}"
createrawtransaction "[]" "{\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.777,\"2102c42516ab9b0958f349783222c8b665314ce0f12ae513af1c15e10e8045b87544ac\":0.01}"
createrawtransaction "[]" "{\"2102c42516ab9b0958f349783222c8b665314ce0f12ae513af1c15e10e8045b87544ac\":0.777,\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.01}"
createrawtransaction "[]" "{\"data\":\"010203\",\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.01}"
createrawtransaction "[]" "{\"RKZWgNw9rvMJCHeD6mFgFNrJGxCoT2bft1\":0.777,\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.01}"
createrawtransaction "[]" "{\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.777,\"RKZWgNw9rvMJCHeD6mFgFNrJGxCoT2bft1\":0.01}"
createrawtransaction "[]" "{\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.777,\"a914fe6ac2ca169440909ab86e2e015db0938b92634787\":0.01}"
createrawtransaction "[]" "{\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.777,\"a914fe6ac2ca169440909ab86e2e015db0938b92634787\":0.01,\"a914fe6ac2ca169440909ab86e2e015db0938b92634787\":0.02}"
createrawtransaction "[]" "{\"76a91470c770cd22061696c01011a020892d136caba70588ac\":0.777,\"a914fe6ac2ca169440909ab86e2e015db0938b92634787\":0.01,\"data\":\"00010203\"}"
2019-07-17 20:33:51 +03:00
jl777
adc186390a nSPV mempool used by CC 2019-07-17 01:07:12 -11:00
jl777
28e10d71bf First version of mempool request 2019-07-15 02:04:19 -11:00
jl777
6cb639c2b7 nspv_listtransactions initial 2019-07-13 01:49:05 -11:00
jl777
f963001d0b Reduce getinfo footprint 2019-07-12 22:07:56 -11:00
jl777
7d38d22ce9 ->myGetTransaction for nSPV virtualisation 2019-07-12 01:35:59 -11:00
jl777
93fb6f5f51 -print 2019-07-11 21:47:48 -11:00
jl777
ea155ad656 Merge branch 'FSM' into jl777 2019-07-08 17:56:27 -11:00
jl777
24b67c623b Small fixes and logout 2019-07-06 19:41:55 -11:00
jl777
d3730db5d8 Prevent crash when displaying interest 2019-07-06 07:52:38 -11:00
jl777
3bf999989d ) 2019-07-06 00:26:28 -11:00
jl777
cf4b5323fd Add nspv_broadcast, to all parts: rpc, superlite, full node
A good example of how to add a new nSPV message, with corresponding rpc
support
2019-07-05 23:26:01 -11:00
jl777
ffd7509692 nspv_send -> spend 2019-07-05 22:13:06 -11:00
jl777
7c6f471173 Allow "inv" to be sent from superlite client 2019-07-05 06:57:09 -11:00
jl777
e0489802a5 -pindex 2019-07-05 04:59:44 -11:00
jl777
81d0e44732 Guards for nSPV in decode/send raw transaction 2019-07-05 04:58:30 -11:00
jl777
085f99d44d Add coinaddr to utxos 2019-07-05 00:35:44 -11:00
jl777
591185a0b3 Rest of client side low level rpc, incl messages 2019-07-04 00:29:18 -11:00
jl777
1841071a12 Merge pull request #1581 from Mixa84/FSM
Initial PegsCC implementation
2019-07-03 22:36:13 -11:00
Mihailo Milenkovic
1f013df156 Initial PegsCC implementation (#27) 2019-07-04 11:23:55 +02:00
jl777
c3343e237e Getinfo, login, listunspent, spentinfo rpc calls 2019-07-03 20:36:31 -11:00
Alrighttt
5e6737fc38 add additional param to importprivkey for other WIF formats 2019-07-01 19:03:52 +02:00
Alrighttt
896b6fee53 fix createrawtransaction curl example 2019-06-30 15:38:27 +02:00
jl777
65a92e20bf Merge pull request #1568 from blackjok3rtt/FSM
various bug fixes
2019-06-18 04:26:50 -11:00
blackjok3r
eca62bb4f3 fix crash/lockup on KMD with mining pools when an old utxo makes IsFinalTx fail in TestBlockValidity. 2019-06-18 21:49:56 +08:00
Mihailo Milenkovic
40ec8b3bac Add oraclessample rpc to get data for txid. 2019-06-15 15:36:04 +02:00
ca333
1403eb6cf7 bump version
bump version for the hardfork
2019-06-10 18:18:09 +02:00
jl777
439e7cb5d7 Fix getchaintips rpc crash. Thanks mike tout!! 2019-06-07 08:51:38 -11:00
jl777
89e1414c6b Merge pull request #1524 from KMDLabs/master
merge changes for gcharang
2019-06-03 23:05:06 -11:00
blackjok3r
bc69675fc3 undo attempt at hs/s for staking chains 2019-06-04 17:55:34 +08:00
Mihailo Milenkovic
01f597a2c8 Oracles pubkey spoofing in register tx fix
- Fix activation on July 15th 2019 00:00
- Added oraclesfund tx to fund Oracles CC address of pubkey that will register, and spend it in register tx
- oraclessamples gets baton address as input instead of txid to show all data from publisher
2019-05-28 15:40:43 +02:00
Jonathan "Duke" Leto
0f24aec587 Give correct CLI asset name and RPC ports in rpc examples 2019-05-27 21:36:25 -07:00
blackjok3r
1c6723b9f1 for gcharang 2019-05-27 16:22:43 +08:00
blackjok3r
784679fff6 This kind of works, result comes out as negative number though. 2019-05-27 02:51:11 +08:00
blackjok3r
eaca3f2137 fix 2019-05-26 14:38:31 +08:00
blackjok3r
61283f29ac last_notarized_height to getrawtransaction 2019-05-26 14:35:59 +08:00