Commit Graph

16260 Commits

Author SHA1 Message Date
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
Jianping Wu
ff4cda4884 Base64 encode namespace. 2018-12-13 10:43:53 -08:00
Jianping Wu
d341a86c09 Fixed keva_namespace transaction propagation.
Now it crashed maybe when connecting block.
2018-12-13 10:43:53 -08:00
Jianping Wu
2ba7b82896 Handled keva script with getAddress. 2018-12-13 10:43:53 -08:00
Jianping Wu
b8fa12de6b ApplyNameTransaction. 2018-12-13 10:43:53 -08:00
Jianping Wu
194323ed89 Fixed standard.cpp compilation. 2018-12-13 10:43:53 -08:00
Jianping Wu
041c521d77 Standard.cpp handled keva script. 2018-12-13 10:43:53 -08:00
Jianping Wu
5977428951 Wallet getDebit with excluded keva. 2018-12-13 10:43:53 -08:00
Jianping Wu
29eb41121d CTransaction, GetValueOut(bool fExcludeKeva) 2018-12-13 10:43:53 -08:00