Commit graph

113 commits

Author SHA1 Message Date
instagibbs
7501e0a1a0 Adapt daemon functionality to updated libsecp 2017-06-16 12:02:15 -04:00
Gregory Sanders
9ca9c5c997 GetBlockSubsidy is always 0 2017-06-16 12:02:14 -04:00
Gregory Sanders
15dadcd970 Retry bitcoind RPC connection upon warmup error code return 2017-06-16 12:02:14 -04:00
Gregory Sanders
285b10ce10 Fix IsConfirmedBitcoinBlock, clean up CallRPC 2017-06-16 12:02:14 -04:00
Jonas Nick
1287eaa0d9 QA: Allow setting the fedpeg script with a command line argument
- In both default and regtest modes
- The script is stored
- BaseSignatureChecker is used to pass it to the interpreter

Modified by jtimon
2017-06-16 12:02:13 -04:00
instagibbs
9f4ea3d03f Add parent genesis hash to chainparams, simplify checks 2017-06-16 12:02:13 -04:00
instagibbs
cf232e8447 Better error report for failed BitcoindRPCCheck 2017-06-16 12:02:13 -04:00
instagibbs
00c60c7760 CheckInputs: Fix DoS erroneous DoS ban during mempool relay 2017-06-16 12:02:13 -04:00
instagibbs
9167fba9dc Enforce all ISM upgrades immediately 2017-06-16 12:02:13 -04:00
instagibbs
420bdf211d Enable P2SH in ConnectBlock regardless of timestamp 2017-06-16 12:02:13 -04:00
instagibbs
66ab07bd1b Rangeproof caching 2017-06-16 12:02:13 -04:00
instagibbs
dfab197543 Multithreaded amount commitment and range proof checking 2017-06-16 12:02:13 -04:00
instagibbs
e877750729 Move amount verification to main 2017-06-16 12:02:13 -04:00
Pieter Wuille
a94fe57f30 Zero value coinbase output are exempt from fixed destination 2017-06-16 12:02:12 -04:00
Pieter Wuille
7f02c0f316 Add witness commitment when there are only txout witnesses 2017-06-16 12:02:12 -04:00
instagibbs
372e20d8b1 block header commits to height 2017-06-16 12:02:12 -04:00
instagibbs
0d1151f1a3 block validation on script error of properly signed block 2017-06-16 12:02:12 -04:00
instagibbs
f7424036e9 Startup RPC check, failed block queue setup 2017-06-16 12:02:12 -04:00
instagibbs
0caab49550 Don't DoS ban peers for possibly valid pegin blocks 2017-06-15 14:31:27 -04:00
instagibbs
eb3d576a99 Actually enforce withdraw consensus rules 2017-06-15 14:31:26 -04:00
Matt Corallo
76eea62931 Add comment explaining check 2017-06-15 14:31:26 -04:00
instagibbs
c81a726f64 Basic locked utxo testing 2017-06-15 14:31:26 -04:00
instagibbs
0fcad6701f Various updates to locked-output UTXO selection 2017-06-15 14:31:26 -04:00
Matt Corallo
8244b22a91 Require coinbase outputs be to a specific script 2017-06-15 14:31:26 -04:00
Matt Corallo
5f88da386c No DoS for sending a tx/block claiming an unconfirmed btc block 2017-06-15 14:31:25 -04:00
Matt Corallo
b4eae5c48d Add function to get withdraw outputs which are claim-able 2017-06-15 14:31:25 -04:00
Matt Corallo
72df7f55ab Add withdraw-locks-creation tracking in txdb 2017-06-15 14:31:25 -04:00
Luke Dashjr
b5f1b6dd38 Refactors in anticipation of blinded values 2017-06-15 14:20:38 -04:00
Matt Corallo
b8264355f1 Add explicit fee field to transaction 2017-06-15 14:20:38 -04:00
Matt Corallo
fc86bc95c2 No subsidy, 21 million genesis block 2017-06-15 14:20:38 -04:00
Matt Corallo
844beb0d86 Make genesis coinbase outputs spendable 2017-06-15 14:20:38 -04:00
Matt Corallo
fd140d6a36 Disable replacement of peg-in transactions 2017-06-15 14:20:38 -04:00
Matt Corallo
eebbfb84b6 Keep mempool consistent after conflicting withdraw-spent 2017-06-15 14:20:38 -04:00
Matt Corallo
bde5c0a819 Add withdraw-claimed tracking to mempool and enforce it 2017-06-15 14:20:38 -04:00
Matt Corallo
f975886d26 Enforce single-withdraw by tracking withdraws-spent in CheckInputs 2017-06-15 14:20:38 -04:00
Matt Corallo
77607bb3bc Add sidechain claims to UTXO db 2017-06-15 14:20:38 -04:00
Matt Corallo
4ab8b0823a Tweak SignatureChecker to expose a bit more about the transaction 2017-06-15 14:20:38 -04:00
Matt Corallo
25eb07e59b Block with invalid signature is corruption-possible 2017-06-15 14:20:37 -04:00
jtimon
db42a26b72 Implement basic private chain mode 2017-06-15 14:20:37 -04:00
Gregory Sanders
ec4fefd90c [upstream #9102] Really don't validate genesis block 2017-06-15 14:11:48 -04:00
Alex Morcos
0e5133cb2e
Make threshold for flushing more conservative.
Always leave a reasonable buffer of 50MB for usage from newly connected block (once over 50%) and increase the high water mark buffer to 200MB.

Github-Pull: #10133
Rebased-From: 1b55e07b7a
2017-04-05 08:23:02 +02:00
Alex Morcos
ab864d3e49
Make pcoinsTip memory calculations consistent
Since we are more accurately measuring pcoinsTip peak usage at twice the current in dynamic usage, it makes sense to double the default (this will lead to the same effective usage and peak usage as previously).
We should also double the buffer used to avoid flushing if above 90% but still sufficient space remaining.

Github-Pull: #10133
Rebased-From: 5b95a190e8
2017-04-05 08:23:01 +02:00
Gregory Maxwell
2fea10ad03
Make GetWitnessCommitmentIndex callable on blocks without a coinbase txn.
This isn't actually needed anywhere, but it's less brittle.

Github-Pull: #10146
Rebased-From: ada0caa165
2017-04-04 09:01:03 +02:00
Pieter Wuille
0b5e162b84
Compensate for memory peak at flush time
Github-Pull: #10126
Rebased-From: 7228ce853d
2017-03-31 12:07:18 +02:00
Russell Yanofsky
9072395e5f
Return errors from importmulti if complete rescans are not successful
Github-Pull: #9773
Rebased-From: e2e2f4c856
2017-02-22 12:45:43 +01:00
Pavel Janík
3972a8efb2
Read/write mempool.dat as a binary.
mempool.dat is a binary file and thus it should be read/written as such.

Fixes #9810.

Github-Pull: #9813
Rebased-From: 171fc91f06
2017-02-21 12:35:38 +01:00
Suhas Daftuar
ba803efb68 Harden against mistakes handling invalid blocks
Fixes a bug in AcceptBlock() in invoking CheckBlock() with incorrect
arguments, and restores a call to CheckBlock() from ProcessNewBlock()
as belt-and-suspenders.

Updates the (overspecified) tests to match behavior.
2017-02-15 08:17:57 -05:00
MarcoFalke
668de70be0
Merge #9644: [refactor] Remove using namespace <xxx> from src/
b7b48c8 Refactor: Remove using namespace <xxx> from src/*.cpp. (Karl-Johan Alm)
2017-01-30 13:13:20 +01:00
Wladimir J. van der Laan
d2c9e4d422
Merge #9615: Wallet incremental fee
4b189c1 Change bumpfee result value from 'oldfee' to 'origfee'. (Alex Morcos)
0c0c63f Introduce WALLET_INCREMENTAL_RELAY_FEE (Alex Morcos)
e8021ec Use CWallet::GetMinimumFee in bumpfee (Alex Morcos)
ae9719a Refactor GetMinimumFee to give option of providing targetFee (Alex Morcos)
fe8e8ef [rpc] Add incremental relay fee to getnetworkinfo (Alex Morcos)
6b331e6 Fix to have miner test aware of new separate block min tx fee (Alex Morcos)
de6400d Fix missing use of dustRelayFee (Alex Morcos)
5b15870 Use incrementalRelayFee for BIP 125 replacement (Alex Morcos)
2017-01-30 10:38:56 +01:00
Karl-Johan Alm
b7b48c8bbd Refactor: Remove using namespace <xxx> from src/*.cpp. 2017-01-27 18:13:20 +09:00