Commit Graph

10522 Commits

Author SHA1 Message Date
Andrew C
bd5a258e4d RPC tests for generatetoaddress
Adds two RPC tests for the generatetoaddress RPC, one in the wallet, and one when the wallet is disabled.

The wallet RPC Test mines Bitcoin to another node's address and checks that that node has received the Bitcoin.

The RPC test without the wallet mines Bitcoin to an arbitrary address and checks that it works. It then mines to an arbitrary invalid address and checks that that fails.
2018-10-13 14:40:26 +03:00
mruddy
42d12434d5 RPC: fix generatetoaddress failing to parse address and add unit test 2018-10-13 14:36:55 +03:00
Andrew C
64978cb9c5 Create generatetoaddress rpc 2018-10-13 14:36:16 +03:00
Pieter Wuille
d40f1252ff Make the generate RPC call function for non-regtest 2018-10-13 14:28:11 +03:00
Leviathn
392e034334 Remove internal miner 2018-10-13 14:24:42 +03:00
Suhas Daftuar
5888453de4 Add test for handling of unconnecting headers 2018-10-13 14:06:02 +03:00
Suhas Daftuar
75e463decf Improve handling of unconnecting headers 2018-10-13 14:05:45 +03:00
Luke Dashjr
f178b7d0a3 RPC/Mining: getblocktemplate: Update and fix formatting of help 2018-10-13 14:00:04 +03:00
lateminer
b35f06eda3 Update code with PACKAGE_NAME and COPYRIGHT_HOLDERS 2018-10-13 13:49:46 +03:00
Luke Dashjr
4184fc7707 getblocktemplate: Use version/force mutation to support pre-BIP9 clients 2018-10-13 02:43:09 +03:00
Luke Dashjr
c5899e25d0 getblocktemplate: Explicitly handle the distinction between GBT-affecting softforks vs not 2018-10-13 02:43:00 +03:00
Luke Dashjr
fe7cd5b231 qa/rpc-tests: bip9-softforks: Add tests for getblocktemplate versionbits updates 2018-10-13 02:42:39 +03:00
Luke Dashjr
116f49d390 Implement BIP 9 GBT changes
- BIP9DeploymentInfo struct for static deployment info
- VersionBitsDeploymentInfo: Avoid C++11ism by commenting parameter names
- getblocktemplate: Make sure to set deployments in the version if it is LOCKED_IN
- In this commit, all rules are considered required for clients to support
2018-10-13 02:42:30 +03:00
lateminer
a20e1a0db9 Take care of backporting errors 2018-10-13 02:36:24 +03:00
Kalle Alm
8e919e9d59 [rpc] Add abortrescan command to RPC interface. 2018-10-13 02:21:39 +03:00
Kalle Alm
0b91aeefa7 [wallet] Add support for aborting wallet transaction rescans. 2018-10-13 02:15:50 +03:00
lateminer
1ba00e08fe Set nDefaultDbCache back to 100 MiB 2018-10-13 02:03:13 +03:00
Wladimir J. van der Laan
bdf4c81eac Bump -dbcache default to 300MiB
Also cap the allocation for the leveldb-specific cache for the UTXO set
to 8MiB.
This avoids that the extra cache memory goes to the much less effective
leveldb cache instead of our application-level cache.
2018-10-13 02:01:31 +03:00
Johnson Lau
c4e8c11932 Make non-minimal OP_IF/NOTIF argument non-standard for P2WSH 2018-10-13 01:53:13 +03:00
Cory Fields
7813585f6a c++11: detect and correct for boost builds with an incompatible abi 2018-10-13 01:33:48 +03:00
Anthony Towns
d69798cd45 Add configure check for -latomic 2018-10-13 01:26:32 +03:00
Jonas Schnelli
f3298b9ce7 Only pass -lQt5PlatformSupport if >=Qt5.6 2018-10-13 01:23:21 +03:00
Jonas Schnelli
40df66a94f Use runtime linking of QT libdbus, use custom/temp. SDK URL 2018-10-13 01:21:25 +03:00
Jonas Schnelli
569c83cd2c Fix bitcoin_qt.m4 and fix-xcb-include-order.patch 2018-10-13 01:18:48 +03:00
instagibbs
0bd32be132 Adapt ZMQ/rest serialization to take rpcserialversion arg 2018-10-13 01:03:45 +03:00
Gregory Sanders
ab2332461b Add option to return non-segwit serialization via rpc 2018-10-13 01:03:04 +03:00
MarcoFalke
552ef391d7 [doc] gbuild: Set memory explicitly (default is too low) 2018-10-13 00:42:17 +03:00
lateminer
66779ce2b2 Small changes to ThreadStakeMiner() 2018-10-13 00:17:04 +03:00
lateminer
66dd63a23b Proof-of-stake related code refactoring and cleanup 2018-10-12 23:40:50 +03:00
lateminer
da2c4ec6c9 Add RPC call reservebalance 2018-10-12 21:02:30 +03:00
lateminer
e9886e3f1b Code cleanup 2018-10-12 00:34:40 +03:00
lateminer
d452787a2c Completely remove coinage 2018-10-12 00:04:41 +03:00
lateminer
4fc1725b73 Take regtest genesis block hash and merkle root from ABC fork 2018-10-11 23:58:14 +03:00
lateminer
ea7c933b6a Change website to blackcoin.org 2018-10-11 23:49:40 +03:00
lateminer
09d7ba178d Change some testnet and regtest parameters 2018-10-11 23:44:09 +03:00
lateminer
2a3074a1eb Set nLastPOWBlock = 1000 for regtest 2018-10-11 23:32:45 +03:00
lateminer
42f11db5fd Set nLastPOWBlock = 10000 for testnet 2018-10-11 23:30:53 +03:00
lateminer
7dd8d191e0 Some refactoring in CheckStakeKernelHash() 2018-10-11 23:27:53 +03:00
lateminer
e31f80c7c3 Add proof-of-stake logging 2018-10-11 23:16:52 +03:00
lateminer
b338987d94 Move block height check from ContextualCheckBlock() to ConnectBlock() 2018-10-11 22:56:04 +03:00
lateminer
b1bb30cb3a Remove address indexes 2018-10-11 22:02:52 +03:00
lateminer
a059d578cd Replace CDataStream with CHashWriter so it compiles
pos.cpp
2018-10-11 20:31:15 +03:00
lateminer
3a29ae6903 Some code refactoring and cleanup 2018-10-02 01:04:31 +03:00
lateminer
3f46f91ace Added changelog 2018-10-01 19:53:46 +03:00
lateminer
fa1053cce6 Add Blackcoin copyrights on splash screen 2018-09-30 20:10:09 +03:00
lateminer
ba7d6c9b91 Add more paragraphs in LicenceInfo() 2018-09-30 19:57:06 +03:00
lateminer
c1280c7ccf Fix bug in LicenseInfo() that causes crash 2018-09-30 19:52:11 +03:00
lateminer
847c6af31a Revert "Comment checkSubtractFeeFromAmount()"
This reverts commit e4d21f3de7.
2018-09-30 19:50:51 +03:00
Wladimir J. van der Laan
34e36c8384 qt: Plug many memory leaks
None of these are very serious, and are leaks in objects that are
created at most one time.

In most cases this means properly using the QObject parent hierarchy,
except for BanTablePriv/PeerTablePriv which are not QObject,
so use a std::unique_ptr instead.
2018-09-30 19:35:26 +03:00
lateminer
f73b73845e Fix qt: Avoid shutdownwindow-related memory leak 2018-09-30 19:32:37 +03:00