Commit Graph

11206 Commits

Author SHA1 Message Date
Jianping Wu
ed0a03b941 Fixed keva entry in the result of gettransaction. 2019-03-29 23:26:03 -07:00
Jianping Wu
1112bc2f02 Fixed too-long-mempool-chain handling of kevacoin. 2019-03-29 20:10:38 -07:00
Jianping Wu
c5fc61ba4b Deserialized cnHeader in txdb. 2019-03-28 18:04:50 -07:00
Jianping Wu
0b30d4911c Fixed RegTest download timeout. 2019-03-27 22:07:00 -07:00
Jianping Wu
991678d552 Fixed functional test cnHeader merkle root. 2019-03-27 18:47:38 -07:00
Jianping Wu
3007571789 Added back the original getblocktemplate call. 2019-03-27 12:44:05 -07:00
Jianping Wu
f7b0fb0008 Increased block download timeout for RegTest as CN hashing is slower and take more time.
Fixed deserialization of cn header in python test framework.
2019-03-27 00:38:30 -07:00
Jianping Wu
dea50be56b Added support for cryptonote header in functional test python code. 2019-03-26 23:13:36 -07:00
Jianping Wu
06770c9b2c Fixed functional test cases. 2019-03-25 19:17:29 -07:00
Jianping Wu
33ed36e5bf Fixed unit test cases after change of hash calculation. 2019-03-21 23:32:48 -07:00
Jianping Wu
68ffbfc104 Changed block hash calculation, used cryptonote header instead. 2019-03-21 23:10:45 -07:00
Jianping Wu
d50ffd42b1 Returned correct error message when downloading blocks. 2019-03-21 18:02:56 -07:00
Jianping Wu
ddc43217ca Genesis block also used cn header. 2019-03-21 16:20:45 -07:00
Jianping Wu
7b07bb8817 Fixed validation_block_tests with correct heights. 2019-03-21 12:53:11 -07:00
Jianping Wu
70df11c1a7 Fixed unit test blockchain generation. 2019-03-21 10:31:35 -07:00
Jianping Wu
c301a99642 Updated chainparams with CN v4. 2019-03-20 23:14:42 -07:00
Jianping Wu
1e55d22ac0 Introduced block legacy mode for regtests. 2019-03-20 21:50:44 -07:00
Jianping Wu
937095dd4d WIP: started fixing make check. Fixed difficulty computation. 2019-03-20 20:51:25 -07:00
Jianping Wu
d48d05a182 Supported Cryptonight Variant 4. 2019-03-20 12:26:47 -07:00
Jianping Wu
8766247be1 Fixed CN RPC call transfer. 2019-03-19 22:49:52 -07:00
Jianping Wu
b39ed3748d Implemented transfer RPC call. 2019-03-19 00:26:36 -07:00
Jianping Wu
350f6fa953 Fixed CN APIs. 2019-03-18 10:29:26 -07:00
Jianping Wu
48cec14bc4 Added json_rpc url for cryptonote client. 2019-03-15 20:59:54 -07:00
Jianping Wu
27617b446b Fixed CN error messages for mining. 2019-03-15 18:15:38 -07:00
Jianping Wu
b9335132b0 WIP: changed CN dummy key. 2019-03-08 14:45:46 -08:00
Jianping Wu
d44c783fcc WIP: Fixed KevaUnchecked locking issue. 2019-03-08 14:23:53 -08:00
Jianping Wu
8d8c36a77f WIP: mining started to work! 2019-03-08 13:15:24 -08:00
Jianping Wu
3a657f0615 WIP: fixed PoW hash computation. 2019-03-08 11:55:31 -08:00
Jianping Wu
9e442eb109 WIP: fixed block serialization. 2019-03-08 11:19:10 -08:00
Jianping Wu
420c6a56d6 WIP: fixed keva block deserialization. 2019-03-07 22:37:20 -08:00
Jianping Wu
4d44c773c6 WIP: Fixed extra field deserialization. 2019-03-07 22:07:49 -08:00
Jianping Wu
adb3502f77 WIP: HexStr the template blob. 2019-03-07 17:32:08 -08:00
Jianping Wu
8f4b44cbf6 WIP: added get_info for cryptonote. 2019-03-07 16:21:06 -08:00
Jianping Wu
5424d869fa WIP: fixed getblocktemplate. 2019-03-07 15:44:38 -08:00
Jianping Wu
ed57dabf1e Moved to testnet7.
Fixed getblocktemplate.
2019-03-07 15:18:17 -08:00
Jianping Wu
57ab5c7255 WIP: implemented submitblock. 2019-03-06 23:15:11 -08:00
Jianping Wu
bbb78c76a0 WIP: built with latest cn code. 2019-03-06 17:44:09 -08:00
Jianping Wu
baf31da4a7 WIP: integrated latest cn code. 2019-03-06 15:55:46 -08:00
Jianping Wu
80396a7a0f WIP: added cn header to block header. 2019-03-06 13:12:55 -08:00
Jianping Wu
5e39efc98b WIP: implemented getlastblockheader. 2019-03-05 21:26:08 -08:00
Jianping Wu
8b1d430007 WIP: Implemented getblockheaderbyheight. 2019-03-05 21:10:29 -08:00
Jianping Wu
cd9d169a8f WIP: fixed build with cnutils. 2019-03-05 13:18:08 -08:00
Jianping Wu
aa97d9938c WIP: getblocktemplate for cn style return. 2019-03-04 22:13:48 -08:00
Jianping Wu
9afc758027 Started implementing cn layer for kevacoin. 2019-03-02 22:47:25 -08:00
Jianping Wu
4f74153e56 Added cn utils lib. 2019-03-02 22:12:43 -08:00
Jianping Wu
caef63a27f Reversed incorrect commit. 2019-03-02 11:07:26 -08:00
Jianping Wu
b62873f1e8 WIP cn utils. 2019-03-01 20:06:42 -08:00
Jianping Wu
2d8820811e Difficulty 1 is: 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 2019-02-21 14:02:27 -08:00
Jianping Wu
ce06e591cd Changed default mainnet P2P port from 9333 to 9338.
Changed default mainnet RPC port from 9332 to 9337.
mBTC: va
uBTC: mva
Changed default example address to SegWit address.
2019-02-14 11:21:03 -08:00
Jianping Wu
1e187fea9d Added block disconnecting test cases for keva. 2019-02-13 22:42:47 -08:00
Jianping Wu
1aa9fbd044 Fixed keva unit test. 2019-02-13 21:24:42 -08:00
Jianping Wu
37dfb034a6 1. Fixed pending information containing other people's information.
2. Fixed keva undo.
2019-02-13 20:46:30 -08:00
Jianping Wu
8c5def9909 Used SegWit address for keva_delete. 2019-02-12 20:26:25 -08:00
Jianping Wu
c763ddc985 Added feature_keva.py functional test case. 2019-02-12 18:45:29 -08:00
Jianping Wu
ffc04e7399 1. Handled "too-long-mempool-chain" by deleting the offending Tx so that it is not in mempool and will not affect the subsequent operations.
2. Fixed typos in keva_filter output and help message.
2019-02-12 15:51:23 -08:00
Jianping Wu
53d29e5690 Fixed key comparator for kevacache. 2019-02-12 11:54:03 -08:00
Jianping Wu
316b951bd2 Fixed CDbKeyIterator constructor warning.
Removed incorrect items from the results of keva_filter.
2019-02-11 23:56:39 -08:00
Jianping Wu
0fa3dfbcc0 Used SegWit address for keva_put. 2019-02-11 23:20:25 -08:00
Jianping Wu
bf62b97a6a Fixed constructor initialization warnings.
Fixed nameSpace variable assignment used in keva_filter.
2019-02-11 22:30:32 -08:00
Jianping Wu
3ea0145db8 Moved keva_get and keva_filter to non-wallet rpc methods. They don't need wallet to function. 2019-02-11 13:02:42 -08:00
Jianping Wu
e86e3a33a8 Increased MAX_PROTOCOL_MESSAGE_LENGTH to 6MB.
Increase nPowTargetTimespan to 20 from 10, for RegTest.
2019-02-08 19:03:33 -08:00
Jianping Wu
3cf8093553 Increased nPowTargetTimespan to 10 seconds for RegTest.
Checked fPowNoRetargeting in pow.cpp.
2019-02-08 17:14:09 -08:00
Jianping Wu
4c92689288 Mining test cases passed. 2019-02-07 18:07:51 -08:00
Jianping Wu
0c6a908f7c Fixed all rpc test cases. 2019-02-07 17:42:33 -08:00
Jianping Wu
c2e4edb7ec Fixed wallet_account test.
Only supported legacy address in regtest.

Fixed wallet_backup test.

Fixed wallet_basic.

Fixed wallet_multiwallet and txn_clone.

Fixed txn_doublespend test case.
2019-02-07 15:09:19 -08:00
Jianping Wu
ff0f32d468 Updated genesis block for testnet 5. 2019-01-28 20:50:41 -08:00
Jianping Wu
f5935c6a39 Fixed testnet address prefix.
Moved to testnet5.
2019-01-28 18:37:13 -08:00
Jianping Wu
392b7aba5f More changes from litecoin to kevacoin. 2019-01-28 17:21:28 -08:00
Jianping Wu
5f8376e01e Fixed blockchain difficulty tests. 2019-01-26 18:15:10 -08:00
Jianping Wu
c627628f11 Skipped some miner tests (CreateNewBlock_validity) as genesis block is not available yet.
TODO: add back these test cases.
2019-01-26 17:53:16 -08:00
Jianping Wu
9ab8e8d8a0 Fixed base58 test cases.
Skipped lots of test cases since many of them are irrelevant, e.g. kevacoin only have compressed keys.
2019-01-26 17:49:29 -08:00
Jianping Wu
c6b604c418 Changed LTC to KVA.
Fixed qt test cases.
2019-01-26 16:34:11 -08:00
Jianping Wu
22cae7e612 Fixed rpc rawsign test case. 2019-01-26 15:20:05 -08:00
Jianping Wu
16ff06c5c2 Fixed script and transaction tests. 2019-01-26 00:57:32 -08:00
Jianping Wu
72d45d6a69 Fixed unit tests. 2019-01-25 21:25:48 -08:00
Jianping Wu
a0f5c3a91d Changed kevacoin icons. 2019-01-24 22:19:12 -08:00
Jianping Wu
166d96ea1c Properly fixed testnet checking. 2019-01-21 19:34:15 -08:00
Jianping Wu
d814fc3128 Fixed kevacoin difficulty calculation. 2019-01-18 12:13:09 -08:00
Jianping Wu
86d85c886d Added testnet fixed seeds. 2019-01-18 11:45:19 -08:00
Jianping Wu
8bf578cf49 Removed accidental commit. 2019-01-17 21:20:40 -08:00
Jianping Wu
7b9d2ade4e Adjusted genesis block difficulty.
Updated dns seeders.
2019-01-17 21:13:58 -08:00
Jianping Wu
1bc0bb7c55 Disabled mainnet for now. 2019-01-17 11:56:35 -08:00
Jianping Wu
fd939df4f2 Updated dns seeders. 2019-01-17 11:37:52 -08:00
Jianping Wu
9a34a74f14 Fixed testnet configuration. 2019-01-10 14:27:54 -08:00
Jianping Wu
e3c8d3cf1c Fixed macOS crash. 2018-12-29 14:13:13 -08:00
Jianping Wu
9dfb141524 Fixed test net genesis nonce. 2018-12-20 19:28:27 -08:00
Jianping Wu
f7a73a4f32 Increased MAX_BLOCK_WEIGHT from 4000000 to 6000000. 2018-12-17 13:14:36 -08:00
Jianping Wu
f80d9fed49 Set the same halving schedule as bitcoin. Increased block reward to 500. 2018-12-15 21:22:25 -08:00
Jianping Wu
9a025be151 Implemented keva_filter. 2018-12-13 10:43:54 -08:00
Jianping Wu
33bb11cdda Re-arranged keva ops.
Changed genesis block reward to 0.00001 coin.
2018-12-13 10:43:54 -08:00
Jianping Wu
f6b074a81c Fixed keva_delete. 2018-12-13 10:43:54 -08:00
Jianping Wu
df20cfc6d2 WIP: implemented keva_delete.
Problem: after the call, the corresponding keva coin is gone!
2018-12-13 10:43:54 -08:00
Jianping Wu
ceefe25a87 WIP: Keva mempool test. 2018-12-13 10:43:54 -08:00
Jianping Wu
37ea895cde Keva undo tests. 2018-12-13 10:43:54 -08:00
Jianping Wu
7f2f9e55b7 Started working on keva test case. 2018-12-13 10:43:54 -08:00
Jianping Wu
eb9ea1b9dd Made sure to delete the entries from the db is they are new (i.e. no namespace and key combo before).
TODO: add keva test.
2018-12-13 10:43:54 -08:00
Jianping Wu
cf0c3f22c0 Reduced the nMinimumChainWork for the first release. 2018-12-13 10:43:54 -08:00
Jianping Wu
9b51553117 CLIENT_NAME("KevacoinCore") 2018-12-13 10:43:54 -08:00
Jianping Wu
ceb78e8e72 Fixed genesis coinbase scriptPubKey. 2018-12-13 10:43:54 -08:00
Jianping Wu
638a5a715c Added kevacoin DNS seeders. 2018-12-13 10:43:54 -08:00
Jianping Wu
c436fe9b65 Fixed most miner tests.
Still three failures.
2018-12-13 10:43:54 -08:00
Jianping Wu
fd588c921a Fixed script test. 2018-12-13 10:43:54 -08:00
Jianping Wu
781e53a22b Fixed POW test cases. 2018-12-13 10:43:54 -08:00
Jianping Wu
e4376fdcb5 Increased total supply to: 1344000000.
Fixed subsidy test case.
2018-12-13 10:43:54 -08:00
Jianping Wu
19c0ce9f75 Changed ts file LITECOIN to KEVACOIN. 2018-12-13 10:43:54 -08:00
Jianping Wu
5435d4b512 Tried to improve icons. 2018-12-13 10:43:54 -08:00
Jianping Wu
4d49d6ec97 Multiple icon size in the same file. 2018-12-13 10:43:54 -08:00
Jianping Wu
037da953d2 Added Kevacoin icons. 2018-12-13 10:43:54 -08:00
Jianping Wu
feccd14a48 Second major changes from litecoinS to kevacoinS. 2018-12-13 10:43:53 -08:00
Jianping Wu
7a994de062 First major changes to kevacoin text. 2018-12-13 10:43:53 -08:00
Jianping Wu
2c382b4dc0 Fixed test net genesis. 2018-12-13 10:43:53 -08:00
Jianping Wu
6e12ede1d6 More changes from litecoins to kevacoins. 2018-12-13 10:43:53 -08:00
Jianping Wu
e3a786f827 Fixed windows build.
Fixed qt build.
2018-12-13 10:43:53 -08:00
Jianping Wu
98234230d2 Added Base58 format checking for namespace. 2018-12-13 10:43:53 -08:00
Jianping Wu
080740146f Fixed list namespaces output - used valid JSON. 2018-12-13 10:43:53 -08:00
Jianping Wu
f947286c8b Used DecodeBase58Check to match EncodeBase58Check.
Max value length is MAX_SCRIPT_ELEMENT_SIZE.
2018-12-13 10:43:53 -08:00
Jianping Wu
e30e56ef11 OK, it was decided that MAX_SCRIPT_ELEMENT_SIZE shall be 3072. 2018-12-13 10:43:53 -08:00
Jianping Wu
45fed9568c N for prefix of namespace. 2018-12-13 10:43:53 -08:00
Jianping Wu
66f3985021 N or M for namespace.
TODO: make sure it is N only!
2018-12-13 10:43:53 -08:00
Jianping Wu
cfa582bd00 Added op name in keva_pending output. 2018-12-13 10:43:53 -08:00
Jianping Wu
ce08f141cc Implemented keva_pending. 2018-12-13 10:43:53 -08:00
Jianping Wu
11c740f549 Cleaned up code - removed dead code from namecoin.
Removed lots of legacy checks from namecoin.
2018-12-13 10:43:53 -08:00
Jianping Wu
a875d1ca34 Find keva coins from wallet. 2018-12-13 10:43:53 -08:00
Jianping Wu
2e6a3dbec7 Removed confirmed/conflicted namespaces and keys. 2018-12-13 10:43:53 -08:00
Jianping Wu
126f160722 Started working on instant results. 2018-12-13 10:43:53 -08:00
Jianping Wu
1d0a0efaeb Validated unique namespace id. 2018-12-13 10:43:53 -08:00
Jianping Wu
e23a5a6fe8 Used hash of the first TxIn as namespace id. This ensures that the namespace id is unqiue.
TODO: verify that the TxIn is indeed the hash of the first TxIn.
2018-12-13 10:43:53 -08:00
Jianping Wu
7d80f78f4e Fixed keva amount in wallet. 2018-12-13 10:43:53 -08:00
Jianping Wu
af0a8efb0a More kevacoin name changes. 2018-12-13 10:43:53 -08:00
Jianping Wu
049a7b2a80 Bug: remove keva input value from the value to select. 2018-12-13 10:43:53 -08:00
Jianping Wu
294f4f1cda Started changing from litecoin to kevacoin. 2018-12-13 10:43:53 -08:00
Jianping Wu
348513dda6 Upgraded to Cryptonight V8. 2018-12-13 10:43:53 -08:00
Jianping Wu
b363a8d80e Base58 encoding for namespace (prefix 2, to be fixed to N)
Segwit P2SH-P2WPKH.
redeemScript = 0x0014{20-byte keyhash}
scriptPubKey = OP_HASH160 hash160(redeemScript) OP_EQUAL
2018-12-13 10:43:53 -08:00
Jianping Wu
c50e868e14 Began to use SEGWIT by default! 2018-12-13 10:43:53 -08:00
Jianping Wu
a93ded2feb Used kva instead of ltc.
Changed Base58 prefix for legacy (K), segwit (V) and secret key (M).
2018-12-13 10:43:53 -08:00
Jianping Wu
f9a7c7d3cb Added notes for mining.cpp for GetNodeCount. 2018-12-13 10:43:53 -08:00
Jianping Wu
0a3cd4eccd Fixed consensus.nMinimumChainWork. 2018-12-13 10:43:53 -08:00
Jianping Wu
6d38a1ea6d Fixed C files linking issue -fPIC 2018-12-13 10:43:53 -08:00
Jianping Wu
6b28595a6f Fixed namespace/key update checking. 2018-12-13 10:43:53 -08:00
Jianping Wu
fecf3a8ab5 Fixed getting namespace txin. 2018-12-13 10:43:53 -08:00
Jianping Wu
56693daa32 Used Base64 with N prefix for namespace. 2018-12-13 10:43:53 -08:00
Jianping Wu
11746152dc Implemented keva_get. 2018-12-13 10:43:53 -08:00
Jianping Wu
0d808fcdd0 Implemented keva_list_namespaces. 2018-12-13 10:43:53 -08:00
Jianping Wu
c72450e983 Stored the latest tx output in namespace data. 2018-12-13 10:43:53 -08:00
Jianping Wu
1a4f002243 Fixed cached namespace. 2018-12-13 10:43:53 -08:00
Jianping Wu
d3e92247d7 Fixed KEVA_PUT checking. 2018-12-13 10:43:53 -08:00
Jianping Wu
148ff7fcbd Handled OP_KEVA_* - treated them as NOP. 2018-12-13 10:43:53 -08:00
Jianping Wu
45fecd334e Changed HasNamespace to GetNamespace. Fixed BackedView error.
Started working on keva_put.
2018-12-13 10:43:53 -08:00
Jianping Wu
ef2c2789f5 Marked keva namespace coin as unspendable. 2018-12-13 10:43:53 -08:00
Jianping Wu
83f7bd5071 Fixed tuple const valtype& crash issues. 2018-12-13 10:43:53 -08:00