Commit graph

1486 commits

Author SHA1 Message Date
Gregory Sanders
5bd72c12fe Make sure coinbase has no fees 2017-04-02 14:21:30 -04:00
Gregory Sanders
d9ab0e3edf Replace nTxFee with explicit output fees 2017-04-02 14:21:30 -04:00
Gregory Sanders
e0ecf588dd Greatly simplify coinbase balance checking 2017-04-02 14:21:30 -04:00
Gregory Sanders
589761f799 DEMO ONLY: issuance skeleton 2017-04-02 14:21:30 -04:00
Gregory Sanders
bb2f08d84e SurjectionProof caching 2017-04-02 14:18:27 -04:00
Gregory Sanders
33bc0906ad Enable multithreaded validation of surjection proofs 2017-04-02 14:18:27 -04:00
Gregory Sanders
05bc6db085 Consensus: Add asset type to CTxOut and validation 2017-04-02 14:05:25 -04:00
Mark Friedenbach
78c1556679 CT: Rename nCommitmentSize -> nCommittedSize 2017-04-02 14:05:25 -04:00
instagibbs
87ccc27273 Adapt daemon functionality to updated libsecp 2017-04-02 14:05:25 -04:00
Gregory Sanders
6252e5c2dc GetBlockSubsidy is always 0 2017-02-02 10:59:07 -05:00
Gregory Sanders
d224e2eb52 Retry bitcoind RPC connection upon warmup error code return 2017-02-02 10:59:01 -05:00
Gregory Sanders
c868ef325e Fix IsConfirmedBitcoinBlock, clean up CallRPC 2017-02-02 10:59:01 -05:00
Jonas Nick
bb1f44f8a6 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-02-02 10:59:00 -05:00
instagibbs
934023c7ea Add parent genesis hash to chainparams, simplify checks 2017-02-02 10:58:57 -05:00
instagibbs
9009318556 Better error report for failed BitcoindRPCCheck 2017-02-02 10:58:56 -05:00
instagibbs
6b77b1af06 CheckInputs: Fix DoS erroneous DoS ban during mempool relay 2017-02-02 10:58:56 -05:00
instagibbs
c136e0ac78 Enforce all ISM upgrades immediately 2017-02-02 10:58:56 -05:00
instagibbs
15c2a60226 Enable P2SH in ConnectBlock regardless of timestamp 2017-02-02 10:58:56 -05:00
instagibbs
7154c1f9ad Rangeproof caching 2017-02-02 10:58:56 -05:00
instagibbs
33609ed3ea Multithreaded amount commitment and range proof checking 2017-02-02 10:58:56 -05:00
instagibbs
56aa82fc2d Move amount verification to main 2017-02-02 10:58:56 -05:00
Pieter Wuille
5b2053211e Zero value coinbase output are exempt from fixed destination 2017-02-02 10:58:56 -05:00
Pieter Wuille
d212526c24 Add witness commitment when there are only txout witnesses 2017-02-02 10:58:56 -05:00
instagibbs
e637e5a5da block header commits to height 2017-02-02 10:58:56 -05:00
instagibbs
a75159e1f8 block validation on script error of properly signed block 2017-02-02 10:58:51 -05:00
instagibbs
9c62706831 Startup RPC check, failed block queue setup 2017-02-02 10:58:51 -05:00
instagibbs
3ee361cc16 Don't DoS ban peers for possibly valid pegin blocks 2017-02-02 10:58:50 -05:00
instagibbs
a727d7629b Actually enforce withdraw consensus rules 2017-02-02 10:58:50 -05:00
Warren Togami
baa3b0c5cc Disable -peerbloomfilters by default in sidechains
Removes Denial of Service risk on a network that will likely never
have light wallets.  User can enable it again if they reallly want it.
2017-02-02 10:58:50 -05:00
Matt Corallo
10249053d0 Add comment explaining check 2017-02-02 10:58:50 -05:00
instagibbs
95900548d3 Basic locked utxo testing 2017-02-02 10:58:50 -05:00
instagibbs
d8c5160e62 Various updates to locked-output UTXO selection 2017-02-02 10:58:50 -05:00
Matt Corallo
4254f332cd Disable fInbound requirement for preferred-sync peers 2017-02-02 10:58:50 -05:00
Matt Corallo
0156202474 Require coinbase outputs be to a specific script 2017-02-02 10:58:49 -05:00
Matt Corallo
455ff66694 Respond to getheaders even in IBD mode
This should fix an issue which would crop up if we ever needed to
pause the chain for a period of time - namely that nodes would not
sync again afterwards if they restarted during the pause.
2017-02-02 10:58:49 -05:00
Matt Corallo
dff6b024dd No DoS for sending a tx/block claiming an unconfirmed btc block 2017-02-02 10:58:49 -05:00
Matt Corallo
4b80cee0f1 Add function to get withdraw outputs which are claim-able 2017-02-02 10:58:49 -05:00
Matt Corallo
3914ec30cf Add withdraw-locks-creation tracking in txdb 2017-02-02 10:58:49 -05:00
Luke Dashjr
3ad6bbe651 Refactors in anticipation of blinded values 2017-02-02 10:58:48 -05:00
Matt Corallo
49f24bc6e2 Add explicit fee field to transaction 2017-02-02 10:58:48 -05:00
Matt Corallo
0663a9bf9f No subsidy, 21 million genesis block 2017-02-02 10:58:48 -05:00
Matt Corallo
f381a70619 Make genesis coinbase outputs spendable 2017-02-02 10:58:48 -05:00
Matt Corallo
6939698bc5 Disable replacement of peg-in transactions 2017-02-02 10:58:48 -05:00
Matt Corallo
54f981de1f Keep mempool consistent after conflicting withdraw-spent 2017-02-02 10:58:47 -05:00
Matt Corallo
79d422acfa Add withdraw-claimed tracking to mempool and enforce it 2017-02-02 10:58:47 -05:00
Matt Corallo
16063366d9 Enforce single-withdraw by tracking withdraws-spent in CheckInputs 2017-02-02 10:58:47 -05:00
Matt Corallo
c549d96ead Add sidechain claims to UTXO db 2017-02-02 10:58:47 -05:00
Matt Corallo
6c945bea44 Tweak SignatureChecker to expose a bit more about the transaction 2017-02-02 10:58:47 -05:00
Matt Corallo
b6a9974821 Block with invalid signature is corruption-possible 2017-02-02 10:58:47 -05:00
jtimon
911294c696 Refactors in anticipation of private chain mode 2017-02-02 10:58:43 -05:00