Commit Graph

414 Commits

Author SHA1 Message Date
Duke Leto
73dcf87f10 Merge upstream FSM into duke 2019-10-09 22:00:02 -04:00
ca333
6b79766999 Merge pull request #205 from KomodoPlatform/fix_PING
fix PING/REJECT attack [CVE-2019-17048, CVE-2019-16930]
2019-10-06 00:38:09 +02:00
Jonathan "Duke" Leto
5b94d6e4fa still not happy 2019-10-05 12:06:06 -04:00
ca333
85aad4be5d fix PING attack [CVE-2019-17048] 2019-10-02 21:53:47 +02:00
jl777
bcf242808b Fix adaptive pow else 2019-09-07 20:10:09 -11:00
Jonathan "Duke" Leto
d5dd6165f1 Merge remote-tracking branch 'jl777/FSM' into duke 2019-08-13 07:09:55 -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
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