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
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
Jianping Wu
f94b3294f8
Fixed args check for keva.
2018-12-13 10:43:53 -08:00
Jianping Wu
adb513eeaa
Continued adding keva support.
2018-12-13 10:43:53 -08:00
Jianping Wu
49de399c30
Implemented writing to DB.
2018-12-13 10:43:53 -08:00
Jianping Wu
afa40c41b6
Fixed keva op.
2018-12-13 10:43:53 -08:00
Jianping Wu
17a422025e
Finally everything built!
2018-12-13 10:43:53 -08:00
Jianping Wu
97b35682e0
WIP: main.cpp compiled.
2018-12-13 10:43:53 -08:00
Jianping Wu
d05ab948e2
WIP: tried to compile keva/main.cpp.
2018-12-13 10:43:53 -08:00
Jianping Wu
c56fb50b55
WIP: namespace/key
2018-12-13 10:43:53 -08:00
Jianping Wu
b112e0c795
WIP: fixed compilation errors.
2018-12-13 10:43:53 -08:00
Jianping Wu
ec2f335382
Started fixing compilation errors.
2018-12-13 10:43:53 -08:00
Jianping Wu
fb0acfc6d9
WIP: started implementing keva_namespace.
2018-12-13 10:43:53 -08:00
Jianping Wu
7b6206d83a
nSubsidyHalvingInterval from 840000 to 840000 * 4.
2018-12-13 10:43:53 -08:00
Jianping Wu
30e907bac6
Digishield difficulty adjustment.
...
Changed block time to 2 minutes.
2018-12-13 10:43:53 -08:00
Jianping Wu
b3a0506e4c
Changed initial target.
2018-12-13 10:43:53 -08:00
Jianping Wu
d40f735500
Lowered difficulty for CN algorithm.
2018-12-13 10:43:53 -08:00
Jianping Wu
7f27245431
Switched to cryptonight PoW.
2018-12-13 10:43:53 -08:00
Jianping Wu
fac4394247
Started working on Cryptonight.
2018-12-13 10:43:53 -08:00
Jianping Wu
855dc114e9
WIP: support two OPs.
2018-12-13 10:43:52 -08:00
Jianping Wu
4837682b4d
WIP: started implementing namespace, key and value.
2018-12-13 10:43:52 -08:00
Jianping Wu
ec7aaa8b1f
Fixed genesis block generation - GetPoWHash is scrypt hash, GetHash is SHA2 hash!
2018-12-13 10:43:52 -08:00
Jianping Wu
108ab19e27
WIP: changed pchMessageStart for test and regtest.
2018-12-13 10:43:52 -08:00
Jianping Wu
ddc94011a2
WIP: started working on genesis block.
2018-12-13 10:43:52 -08:00
MiWCryptoCurrency
10753d669d
qt: Revert "Force TLS1.0+ for SSL connections"
...
fix for upstream bitcoin qt5 openssl issue: https://github.com/bitcoin/bitcoin/pull/14403
2018-10-25 20:51:22 -04:00
Adrian Gallagher
c84d27f39e
Bitcoin Core 0.16.3 final
...
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEnerg3HBjJJ+wVHRoHkrtYphs0l0FAlugRdQACgkQHkrtYphs
0l0AuAf/TIQkEZte6q0/E3Sp+2ejoSuNCS+jsDpN7eSYEazHL4e9GIe2TmpnNG9u
5Lb5BT0Tv5zDc5ivf3Quuq0dQqRmQAyl0EiM7kSjYF3MOBFAXt4Yi4W1VRrfT9Fb
Nabx8F8NzjnlgxuF0kLXUMfxKCN92d2fl2m4APXgyKA+OFoC2XQ/GBnqUdwMlCic
XeDZf/xc2vZOHP0HNIn2asqdnsJBBPscjsGMcdsrEq62FZ9lmnm8FVycKbkhqaP0
lFxVp4JbJKWKRAIks56HPjPo3TU5VEnvHyOqmwCU3rxoDGDbHWRzByApqmcyM68F
IA5HwltL4+hM9pNouIt/U6UantsFKA==
=nB5i
-----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEEWcrw6W8j9TdHlF/U/jNIh3gJOGwFAluhonwACgkQ/jNIh3gJ
OGy+9Af9FT5MeQ4ucRBtXh/VjaNU78EZUywMzvJSzAyvYgqwO0WpvUXBN+9GyMM/
k+yBvbj9PkJGSHavuGyx+2otsh3eXrd9TN2UyZiVdu8h1HBMFcsd1TxtrX+M5R7R
HCeFA3yPF91WAw2O4fhhHUsHE2fsLR+HXyMcJa86vpJsjQdd388VGKUm7tRVwKGa
TBFBKd5cvpLrzHFU6L7lSj7WNAIO80Bfn032P0mHB90+juP6Qpeknb7+l+TQBU9d
mcCzpKR2oUvUtpWCTfTtC/F+NnJMA0O18wkn+UWoPXLnqCD48Dj/wYo1V6efHkRo
HiTXg772nySxI4z7vl5zdwum75BmEg==
=A6lU
-----END PGP SIGNATURE-----
Merge tag 'v0.16.3' into HEAD
Bitcoin Core 0.16.3 final
2018-09-18 18:12:02 -07:00
Suhas Daftuar
d1dee20547
Fix crash bug with duplicate inputs within a transaction
...
Introduced by #9049
2018-09-17 22:22:30 +02:00
Adrian Gallagher
defc472744
Merge remote-tracking branch 'bitcoin/0.16' into HEAD
2018-08-26 15:57:58 -07:00
Wladimir J. van der Laan
9e116a6f87
Merge #13852 : [0.16] doc: correct the help output for -prune
...
11b9dbb439
-prune option -help output aligned with code (Hennadii Stepanov)
Pull request description:
Backports #13844 to the 0.16 branch.
Tree-SHA512: 84cac57ca3b1ef34892e73f131b5f3cc50d3f9e268a4123092cf6cdf519fc20616b5b084f9e9343505c15a2cf663a2c94d18c4587bcb7c261cbe32eeac8afe9b
2018-08-08 12:36:33 +02:00
Wladimir J. van der Laan
b64f02fcfa
Merge #13796 : [0.16] Make signrawtransaction give an error when amount is needed but missing
...
212ef1f954
[tests] Check signrawtransaction* errors on missing prevtx info (Anthony Towns)
1825e37075
Error on missing amount in signrawtransaction* (Anthony Towns)
Pull request description:
Backport of #13547 to 0.16
Tree-SHA512: 7a660023b6948632a1f949443c18fa45add75ec8c36df1ebbaccd181dd1560c1bef460f061f8dab36b6a5df295eb4967effaa2cf55ea06b41d8f7562842a39ec
2018-08-08 12:29:30 +02:00
Hennadii Stepanov
11b9dbb439
-prune option -help output aligned with code
...
see: .../src/init.cpp#L1063
Github-Pull: #13844
Rebased-From: 312ff01
2018-08-02 21:35:23 +08:00
Wladimir J. van der Laan
6518bcd56c
Merge #13797 : [0.16] bitcoinconsensus: invalid flags should be set to bitcoinconsensus_error type, add test cases covering bitcoinconsensus error codes
...
1cdbea7f74
bitcoinconsensus: invalid flags should be set to bitcoinconsensus_error type, add test cases covering bitcoinconsensus error codes (Thomas Kerin)
Pull request description:
Backport of #13655 to 0.16
Tree-SHA512: b62e185f2aa957f09255090e59f96c039f47a5623d68b6fef8d1dd831c6d3135b039be5cfad0f823687ff2a5143d24e34bd83fefcc9ba5b68f43054cbd9d909d
2018-07-30 17:04:07 +02:00
Thomas Kerin
1cdbea7f74
bitcoinconsensus: invalid flags should be set to bitcoinconsensus_error type, add test cases covering bitcoinconsensus error codes
...
Github-Pull: #13655
Rebased-From: 417b6c1d2990ffc78c029442e027797d724a101f
2018-07-29 21:08:45 +00:00
Anthony Towns
1825e37075
Error on missing amount in signrawtransaction*
...
Signatures using segregated witness commit to the amount being spent,
so that value must be passed into signrawtransactionwithkey and
signrawtransactionwithwallet. This ensures an error is issued if that
doesn't happen, rather than just assuming the value is 0 and producing
a signature that is almost certainly invalid.
Github-Pull: #13547
Rebased-From: a3b065b51fb333d976108a1fe34b7f663fd67285
2018-07-29 20:26:45 +00:00
Adrian Gallagher
ad3c330972
Merge remote-tracking branch 'bitcoin/0.16' into HEAD
2018-07-23 16:53:43 -07:00
Ben Woosley
20461fc272
Fix that CWallet::AbandonTransaction would only traverse one level
...
Prior to this change, it would mark only the first layer of
child transactions abandoned, due to always following the input hashTx
rather than the current now tx.
Github-Pull: #13652
Rebased-From: 89e70f9d7fe384ef9de4fa3828d4c80523290186
Tree-SHA512: 403da0cc400a807e5a30038bd505881a68208c3f9e96ad5a7755e763666982bc3c19564ac13a5757612c8b6efc331fb2ad0edbaf7e830993b84bc64624423e54
2018-07-16 15:37:42 +02:00
MarcoFalke
d9c563095d
qa: Initialize lockstack to prevent null pointer deref
...
Github-Pull: #13300
Rebased-From: fa9da85b7cc759d06bc24854be2bad0ea87b6006
2018-07-14 11:12:47 -04:00
Wladimir J. van der Laan
21dd5127a4
gui: Show messages as text not html
...
Currently, error messages (such as InitError) are displayed as-is, which
means Qt does auto detection on the format.
This means that it's possible to inject HTML from the command line
though e.g. specifying a wallet name with HTML in it. This isn't
a direct security risk because fetching content from internet is
disabled (and as far as I know we never report strings received
from the network this way). However, it can be confusing.
So explicitly force the format as text.
Github-Pull: #12617
Rebased-From: 6fbc0986fa2d49a1cb65b60eca71c25c84842a54
2018-07-13 13:33:58 -04:00
Sjors Provoost
f78e7f6589
[qt] send: Clear All also resets coin control options
...
Github-Pull: #12432
Rebased-From: f506c0a7f8ea6bae089177884e44e38cd2bfeb23
2018-07-13 13:33:58 -04:00
Pieter Wuille
657dfc5bca
Fix csBestBlock/cvBlockChange waiting in rpc/mining
...
Github-Pull: #12743
Rebased-From: 45dd13503918e75a45ce33eb5c934b998790fdc8
2018-07-13 12:23:39 -04:00
532479301
88d1a649a2
Consensus: Fix bug when compiler do not support __builtin_clz*
...
#ifdef is not correct since defination is defined to 0 or 1. Should change to #if
Github-Pull: #12573
Rebased-From: 18307849b405f9e2067eaa8091b105838f413707
2018-07-13 12:23:39 -04:00
Gregory Sanders
6b9dc8ceae
have verifytxoutproof check the number of txns in proof structure
...
Github-Pull: #13452
Rebased-From: ed82f1700006830b6fe34572b66245c1487ccd29
2018-07-13 12:23:39 -04:00
MarcoFalke
ed82e7176d
wallet: Erase wtxOrderd wtx pointer on removeprunedfunds
...
Github-Pull: #13437
Rebased-From: faa18ca046e9043b2cf68cb1bd17cc8c60fe26d9
2018-07-13 11:50:25 -04:00
practicalswift
e15e3a9ddd
Remove boost dependency (boost/assign/std/vector.hpp)
...
Github-Pull: #13545
Rebased-From: 962d8eed5bdbe62b9926f01cb85bdce9d435d3d6
2018-07-13 11:50:25 -04:00
practicalswift
10621995ed
Fix incorrect tests
...
Github-Pull: #13545
Rebased-From: c6fd0df4efcd9f75c43ff527fd57fe43bc47a474
2018-07-13 11:50:25 -04:00
Bernhard M. Wiedemann
170b309981
Make tests pass after 2020
...
also test that 64 bit integers are properly handled
Github-Pull: #13061
Rebased-From: 3ee4be10500710fc8e9b03acf974fd81224c05c4
2018-07-12 10:27:29 -04:00
Suhas Daftuar
cfc6f7413b
[rpcwallet] Clamp walletpassphrase value at 100M seconds
...
Larger values seem to trigger a bug on macos+libevent (resulting in the
rpc server stopping).
Github-Pull: #12905
Rebased-From: 662d19ff7217d0e6c7975ca311933f640955a53e
2018-07-12 10:03:03 -04:00
joemphilips
bf1f150190
rpc: fix type mistmatch in listreceivedbyaddress
...
Github-Pull: #12837
Rebased-From: 05c03d1249c6fe30dbfcea9f3f3a3bd02106035b
2018-07-12 10:03:03 -04:00
John Newbery
2291774bd5
[trivial] Add newlines to end of log messages.
...
Log messages should terminate with a '\n', or the following log will be
written to the same line without a timestamp. Fix a couple of cases
where the message is not terminated with a \n.
Github-Pull: #12887
Rebased-From: 5b10ab0116245ee73b493e2248ad2f8bb8e34f21
2018-07-12 10:03:02 -04:00
MarcoFalke
cf6feb7837
qt: Avoid resetting on resetguisettigs=0
...
Github-Pull: #12793
Rebased-From: 342fb8034640d4393771899dc132c9e3b170b369
2018-07-12 10:03:02 -04:00
Matt Corallo
c04a4a5ae9
Remove useless mapRequest tracking that just effects Qt display.
...
I thought we had removed this a long time ago, TBH, its really
confusing feedback to users that we display whether a tx was
broadcast to immediate neighbor nodes, given that has little
indication of whether the tx propagated very far.
Github-Pull: #13622
Rebased-From: beef7ec4be725beea870a2da510d2817487601ec
2018-07-12 09:49:41 -04:00
Kristaps Kaupe
f7401c86b9
Fix parameter count check for importpubkey.
...
Github-Pull: #13507
Rebased-From: 3f72d04
2018-06-26 07:58:01 +08:00
Adrian Gallagher
67f7fbf9f5
Litecoin: Update default minimum chain work and default assume valid values
2018-06-17 18:57:43 -07:00
Adrian Gallagher
8ca2ccc96c
Litecoin: Bump blockchain size value
2018-06-17 18:57:33 -07:00
Adrian Gallagher
7b0905f640
Litecoin: Update Qt translations
2018-06-17 18:57:23 -07:00
Adrian Gallagher
8203195e2e
Litecoin: GetPoWHash for validation block tests
2018-06-17 18:56:31 -07:00
Adrian Gallagher
4c20019d30
Merge remote-tracking branch 'bitcoin/0.16'
2018-06-17 18:55:26 -07:00
Gregory Sanders
cbd2f70b75
expose CBlockIndex::nTx in getblock(header)
...
GitHub-Pull: #13451
Rebased-From: 86edf4a
2018-06-15 13:34:09 +08:00
Chun Kuan Lee
ce8aa5491f
Add Windows shutdown handler
...
GitHub-Pull: #13131
Rebased-From: ddebde7
2018-06-13 16:09:04 +08:00
Luke Dashjr
18b0c69e2f
Bugfix: Include <memory> for std::unique_ptr
...
GitHub-Pull: #12859
Rebased-From: a5bca13
2018-06-13 16:07:44 +08:00
Wladimir J. van der Laan
4ea3e8ef07
qt: Periodic translations update
...
Tree-SHA512: eb84c69adcf1547f6bfcfd2d54ef7201c7147c26aa95e07a67be9ac12eeb31b173c847bd5f27b973c911c287ef3654413bdb201d70e4b9414f784e2d58a0071a
2018-06-01 11:37:03 +02:00
Wladimir J. van der Laan
b42c355085
qt: Pre-rc1 transifex pull
...
Tree-SHA512: 91372301f876e3813ebac68d466941ba488b8c74f7525ea9686945d50c2b2e29290c84722c96eebed40a246eca343981feaf2f51b836ba2b3923e4ddc15aef30
2018-05-28 12:55:12 +02:00
Wladimir J. van der Laan
07fb2a6e16
Merge #13319 : [0.16.1] gui: Backport bech32 checkbox
...
dcb13a0ab6
qt: Update translations pre-rc1 (MarcoFalke)
0eda98d01b
GUI: Allow generating Bech32 addresses with a legacy-address default (Luke Dashjr)
ea487f9f90
GUI: Rephrase Bech32 checkbox text/tooltip (Luke Dashjr)
Pull request description:
Tree-SHA512: 1298fa92579bcbdc80537a3a5b2f8aae460c7ebcb46fbade4305d45c883e1717587e24711792b5f65fd25b7a5999d7b9c82e63f5b4d18240f9ec4a0041efdb9a
2018-05-28 12:07:14 +02:00
MarcoFalke
dcb13a0ab6
qt: Update translations pre-rc1
2018-05-24 16:46:20 -04:00
Luke Dashjr
0eda98d01b
GUI: Allow generating Bech32 addresses with a legacy-address default
...
Github-Pull: #13251
Rebased-From: 82dda6bed971c5638962442b4927845fe5eb6600
2018-05-24 16:32:03 -04:00
Luke Dashjr
ea487f9f90
GUI: Rephrase Bech32 checkbox text/tooltip
...
- "Bech32" isn't very user-friendly
- You don't spend from addresses
Github-Pull: #13251
Rebased-From: 7ab1c6f6a736fc7762b8dd513d8634754319d227
2018-05-24 16:28:16 -04:00
Johnson Lau
0a000b9b73
Policy to reject extremely small transactions
...
A transaction with 1 segwit input and 1 P2WPHK output has non-witness size of 82 bytes. Anything smaller than this have unnecessary malloc overhead and are not relayed/mined.
Github-Pull: #11423
Rebased-From: 7485488e907e236133a016ba7064c89bf9ab6da3
2018-05-24 14:03:05 -04:00
Johnson Lau
1fffc2b346
Add transaction tests for constant scriptCode
...
Tests showing that CONST_SCRIPTCODE is applied only to non-segwit transactions
Github-Pull: #11423
Rebased-From: 0f8719bb035187076eeac025e2c786feb0f452d7
2018-05-24 14:03:01 -04:00
Johnson Lau
d353dd121b
Add constant scriptCode policy in non-segwit scripts
...
This disables OP_CODESEPARATOR in non-segwit scripts (even in an unexecuted branch), and makes a positive FindAndDelete result invalid. This ensures that the scriptCode serialized in SignatureHash() is always the same as the script passing to the EvalScript.
Github-Pull: #11423
Rebased-From: 9dabfe49c066301ef75bcfcb089fd308366127c4
2018-05-24 14:03:01 -04:00
Jesse Cohen
d6c3a08c48
Add unit tests for signals generated by ProcessNewBlock()
...
After a recent bug discovered in callback ordering in MainSignals,
this test checks invariants in ordering of
BlockConnected / BlockDisconnected / UpdatedChainTip signals
Github-Pull: #13023
Rebased-From: dd435ad40267f5c50ff17533c696f9302829a6a6
2018-05-24 13:56:00 -04:00
Jesse Cohen
bb79aaf93a
Fix concurrency-related bugs in ActivateBestChain
...
If multiple threads are invoking ActivateBestChain, it was possible to have
them working towards different tips, and we could arrive at a less work tip
than we should. Fix this by introducing a ChainState lock which must
be held for the entire duration of ActivateBestChain to enforce
exclusion in ABC.
Github-Pull: #13023
Rebased-From: a3ae8e68739023e5dba9e5cb190e707ed4603316
2018-05-24 13:55:57 -04:00
Matt Corallo
0948153ea6
Do not unlock cs_main in ABC unless we've actually made progress.
...
Technically, some internal datastructures may be in an inconsistent
state if we do this, though there are no known bugs there. Still,
for future safety, its much better to only unlock cs_main if we've
made progress (not just tried a reorg which may make progress).
Github-Pull: #13023
Rebased-From: ecc3c4a019e6db30e208b8554b1a3658dcb9a80a
2018-05-24 13:55:52 -04:00
Suhas Daftuar
c71e535aec
Bugfix: ensure consistency of m_failed_blocks after reconsiderblock
...
Github-Pull: #13199
Rebased-From: 11fa6bb66e8c1562305d034903a0dc6aee6eea20
2018-05-24 13:55:49 -04:00
Wladimir J. van der Laan
50b2c9e0df
Merge #13253 : [0.16] Further Backports
...
acdf433822
Hold cs_main while calling UpdatedBlockTip() and ui.NotifyBlockTip (Jesse Cohen)
5ff571e90c
[wallet] [tests] Test disallowed multiwallet params (John Newbery)
4c14e7b67c
[wallet] Fix zapwallettxes/multiwallet interaction. (John Newbery)
4087dd08e7
RPC Docs: gettxout*: clarify bestblock and unspent counts (David A. Harding)
b8aacd660e
[qa] Handle disconnect_node race (Suhas Daftuar)
Pull request description:
Backports:
- #13201 [qa] Handle disconnect_node race
- #13184 RPC Docs: gettxout*: clarify bestblock and unspent counts
- #13030 [bugfix] [wallet] Fix zapwallettxes/multiwallet interaction.
- #12988 Hold cs_main while calling UpdatedBlockTip() signal
to the 0.16 branch.
Tree-SHA512: 8f65002bbafaf9c436f89051b2d79bf6a668fbd07bd317c64af238ed4a7c8efe776864b739a7f2869f1e3daa16f2f4366a85f41b188f9c454879d2c7b309be50
2018-05-24 10:31:36 +02:00
Adrian Gallagher
5c8e26d493
Litecoin: Basic changes for v0.16 release ( #482 )
...
* Litecon: Modify thread names
Since this string is displayed externally within lists of processes and should be consistent with branding, and not cause confusion for admins, when running "top", "ps aux", "pgrep" or similar commands.
* Litecoin: Remove invalid doxygen link
* Litecoin: Add additional optional build steps for osx builds
Fixes: https://github.com/litecoin-project/litecoin/issues/463
* Litecoin: Show scrypt sse2 status in configure and fix scrypt syntax issue
2018-05-18 22:45:23 +10:00
Wladimir J. van der Laan
5d8de76257
wallet: Exit SyncMetaData if there are no transactions to sync
...
Instead of crash with an assertion error, simply exit the function
`SyncMetaData` if there is no metadata to sync.
Fixes #13110 .
Github-Pull: #13265
Rebased-From: b0d2ca9fb66d793e3c0f2e6ede811f1b16c33a9f
Tree-SHA512: 67e446e9ced901e37003a9661b6abea268e2ea648ac3b076d91c8d996de96bed389839a09d579a6562d930bcf501a091eb67454f474aae1174108a8650502072
2018-05-18 14:20:10 +02:00
Jesse Cohen
acdf433822
Hold cs_main while calling UpdatedBlockTip() and ui.NotifyBlockTip
...
Ensures that callbacks are invoked in the order in which the chain is updated
Resolves #12978
GitHub-Pull: #12988
Rebased-From: d86edd3
2018-05-18 14:10:39 +08:00
John Newbery
4c14e7b67c
[wallet] Fix zapwallettxes/multiwallet interaction.
...
-zapwallettxes should be disallowed when starting bitcoin in multiwallet
mode.
GitHub-Pull: #13030
Rebased-From: 3476e3c
2018-05-17 10:50:28 +08:00
David A. Harding
4087dd08e7
RPC Docs: gettxout*: clarify bestblock and unspent counts
...
GitHub-Pull: #13184
Rebased-From: f30e9be
2018-05-17 10:50:28 +08:00
fanquake
9645aa6262
Remove blockmaxsize option from init.cpp
2018-05-01 20:57:58 +08:00
Matt Corallo
7847b92605
Default to defining endian-conversion DECLs in compat w/o config
...
While this isn't a supported build configuration, some build
systems need to build without going through our autotools steps,
so defaulting to something sane may make it easier to build.
Specifically, this fixes the inability to build
rust-bitcoinconsensus on some non-x86 platforms. It needs to build
without our autotools/configure steps to ensure correct compile
args are passed from the rust build system to gcc. Converting the
args from the rust build system to gcc would be a lot of
unmaintainable work.
GitHub-Pull: #12998
Rebased-From: 150b2f0
2018-04-26 23:43:54 +08:00
Chun Kuan Lee
1720eb3018
qt:Show the entire Window when double clicking on taskbar
...
GitHub-Pull: #12999
Rebased-From: 67bf2aa
2018-04-26 23:43:54 +08:00
John Newbery
e802c22947
[config] Remove blockmaxsize option
...
The blockmaxsize option was marked as deprecated in V0.15.1, and code
was added to convert provided blockmaxsize into blockmaxweight. However,
this code was incorrectly implemented, and blockmaxsize was silently
ignored.
No users have complained about blockmaxsize being ignored, so just
remove it in V0.17.
GitHub-Pull: #12756
Rebased-From: 4757c04
2018-04-26 23:43:54 +08:00
251
f118a7a35b
Fix illegal default addProxy
and addrSeparateProxyTor
settings.
...
GitHub-Pull: #12650
Rebased-From: 40c5886
2018-04-26 23:43:54 +08:00
e0
f60e84dba4
Limit the number of IPs we use from each DNS seeder
...
A risk exists where a malicious DNS seeder eclipses a node by returning an enormous number of IP addresses. In this commit we mitigate this risk by limiting the number of IP addresses addrman learns to 256 per DNS seeder.
GitHub-Pull: #12626
Rebased-From: 46e7f80
2018-04-26 23:43:54 +08:00
Xinxi Wang
3f8b8a6c5f
Litecoin: M prefix added for script addresses
2018-03-15 16:47:12 -07:00
Adrian Gallagher
dd392b9acc
Litecoin: Update Qt translations
2018-03-15 16:47:04 -07:00
Adrian Gallagher
32ee7c79ae
Litecoin: Fix tests
2018-03-15 15:57:27 -07:00
Adrian Gallagher
f1e1ab4ebc
Litecoin: Update bech32 HRP's
2018-03-15 15:57:25 -07:00
Adrian Gallagher
f117e96e0f
Litecoin: Adjust fee system
2018-03-15 15:57:22 -07:00
Romano
08f2538862
Litecoin: Enable support for SSE2 instructions in scrypt via configure --enable-sse2 ( #362 )
2018-03-15 15:25:42 -07:00
Adrian Gallagher
020b92fb75
Litecoin: Update chainparams and blockchain size
2018-03-15 15:25:40 -07:00
Adrian Gallagher
e4aa272478
Litecoin: Update hardcoded seeds
2018-03-15 15:25:39 -07:00
Adrian Gallagher
5dab5e6757
Litecoin: Adjust splashscreen for testnet/regtest
2018-03-15 15:25:37 -07:00