Commit Graph

421 Commits

Author SHA1 Message Date
Jonathan "Duke" Leto
5e26d8ec4c WIP organic txstats and add some missing stats 2019-08-27 04:42:24 -07:00
Jonathan "Duke" Leto
13dad469c7 add missing zstat and new dep 2019-08-22 05:43:51 -07:00
Jonathan "Duke" Leto
d0d6a9cea9 Merge remote-tracking branch 'jl777/FSM' into duke
Conflicts:
	README.md
2019-08-22 05:23:03 -07:00
Duke Leto
2390a7e499 Merge pull request #27 from MyHush/ztxstats
Add shielded stats to getchaintxstats via zindex
2019-08-22 08:19:06 -04:00
Jonathan "Duke" Leto
c91d1d1fdf Use uints to save RAM/disk on block stats; fix ntz serialization 2019-08-21 11:25:38 -07:00
Jonathan "Duke" Leto
44f34a22e7 more -zindex 2019-08-19 05:07:34 -07:00
Jonathan "Duke" Leto
5365d15e69 Correct various stats and add block height to response 2019-08-18 18:06:12 -07:00
Jonathan "Duke" Leto
80b1479184 Improve shielded-only zstats 2019-08-17 21:54:48 -07:00
Jonathan "Duke" Leto
469c3c9cf2 So many zstats 2019-08-17 21:20:10 -07:00
Jonathan "Duke" Leto
22c0a22926 Compiles, RPC gives back some shielded stats, which have bugs 2019-08-17 05:56:07 -07:00
Jonathan "Duke" Leto
d5dd6165f1 Merge remote-tracking branch 'jl777/FSM' into duke 2019-08-13 07:09:55 -07:00
Jonathan "Duke" Leto
70eb669e63 Return json data about shielded xtns/payments 2019-08-13 07:08:31 -07:00
Jonathan "Duke" Leto
464251bdc3 Add total payment stats to getchaintxstats 2019-08-12 17:38:37 -07:00
Mihailo Milenkovic
a7204d9f85 CC fixes for nSPV and others (#30)
- Remove adding txfee inputs for gateways claim
- FULLNODE and SUPERLITE macros
- Filter SetCCtxids with txid from oprert
- Fix for nServices of fullnode
- Use SetCCtxids_nSPV for some more CCs
- Fix addnormalinputs and add checking if utxo spent in mempool
2019-08-12 14:16:46 +03:00
jl777
b8dea3d5de Don't display getminingdiff in css 2019-08-07 20:47:55 -11:00
jl777
63594dfc24 >= 64 display 2019-08-07 02:26:06 -11:00
jl777
bf44de39a7 Print 2019-08-07 00:48:17 -11:00
jl777
f38c46bbad Fix ctB calc 2019-08-07 00:44:11 -11:00
jl777
1afc2f2569 bnTargetB in CSV 2019-08-07 00:24:00 -11:00
jl777
c9326196b2 Bits not timestamp! 2019-08-06 01:08:24 -11:00
jl777
fde3a1bd52 Hex print nBits 2019-08-06 01:05:05 -11:00
jl777
0bcd425424 Solvetime in csv 2019-08-06 00:32:04 -11:00
jl777
bfb2e128f7 Str2 2019-08-05 21:47:27 -11:00
jl777
138e569388 Use actual target met 2019-08-05 21:45:41 -11:00
jl777
4dbac8fea0 Strange 2019-08-05 07:25:53 -11:00
jl777
314c06007c fname[] 2019-08-05 07:23:45 -11:00
jl777
7bedc90a8b Str fix 2019-08-05 07:20:19 -11:00
jl777
1ee818c98c fname 2019-08-05 07:19:17 -11:00
jl777
5e980a8c26 fname 2019-08-05 07:18:50 -11:00
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
Jonathan "Duke" Leto
6fab065e45 Merge remote-tracking branch 'jl777/FSM' into duke 2019-08-04 21:15:34 -07: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
Jonathan "Duke" Leto
ff706b283a Merge remote-tracking branch 'jl777/FSM' into duke 2019-07-24 11:09:52 -07:00
Mihailo Milenkovic
bc665882ed nSPV modifications for CC and other fixes (#29) 2019-07-24 16:33:03 +02:00
Jonathan "Duke" Leto
e33a7e1367 Merge remote-tracking branch 'jl777/FSM' into duke 2019-07-22 02:38:38 -07: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
Jonathan "Duke" Leto
7ca4e59831 Merge remote-tracking branch 'jl777/FSM' into duke
Conflicts:
	src/hushd
	src/komodo_bitcoind.h
2019-07-17 20:51:52 -07: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