Commit graph

135 commits

Author SHA1 Message Date
Mark Friedenbach
690a403a6d CT: CTxOutValue::IsAmount() -> CTxOutValue::IsExplicit() 2017-06-16 12:02:34 -04:00
Mark Friedenbach
6d3406185f CA: CTxOutAsset::vchAssetTag -> CTxOutAsset::vchCommitment 2017-06-16 12:02:34 -04:00
Mark Friedenbach
37230ccc1b CA: CTxOutAsset::IsAsset() -> CTxOutAsset::IsExplicit() 2017-06-16 12:02:34 -04:00
Mark Friedenbach
b1d487d3e7 CA: CTxOutAsset::IsAssetCommitment() -> CTXOutAsset::IsCommitment() 2017-06-16 12:02:33 -04:00
Jorge Timón
0f79b488a2 fixup! CA: Use fee asset instead of BITCOINID 2017-06-16 12:02:33 -04:00
Mark Friedenbach
8b2cb06617 CA: Switch CTxOutAsset::GetAssetID() to return a constant reference to the stored asset ID rather than perform unnecessary memory reallocation. 2017-06-16 12:02:33 -04:00
Mark Friedenbach
a25f6c6e08 CA: CAssetID -> CAsset 2017-06-16 12:02:33 -04:00
Mark Friedenbach
892cb984ae CA: uint256 -> CAssetID 2017-06-16 12:02:33 -04:00
Gregory Sanders
d650674bca ATMP: Remove assertion from state mutation 2017-06-16 12:02:18 -04:00
Gregory Sanders
29b8fe161b VerifyAmounts: break out asserts into result checks only 2017-06-16 12:02:18 -04:00
Gregory Sanders
eccff6b060 Refactor verifyamounts to accept all 4 (un)blinded configurations 2017-06-16 12:02:17 -04:00
Mark Friedenbach
3836bad390 CA: Add implementation of asset derivation functions. 2017-06-16 12:02:17 -04:00
Gregory Sanders
cc49c12e0a Explicit fee outputs: remove extra vData 2017-06-16 12:02:17 -04:00
Gregory Sanders
714e8fc0d0 Rangeproof commits to scriptpubkey 2017-06-16 12:02:16 -04:00
Gregory Sanders
dcc378adae Allow arbitrary assets for fees 2017-06-16 12:02:16 -04:00
Gregory Sanders
cb2ee26d12 Make sure coinbase has no fees 2017-06-16 12:02:16 -04:00
Gregory Sanders
2f7a9a5846 Replace nTxFee with explicit output fees 2017-06-16 12:02:16 -04:00
Gregory Sanders
553cdeea00 Greatly simplify coinbase balance checking 2017-06-16 12:02:16 -04:00
Gregory Sanders
a38c6b18b5 SurjectionProof caching 2017-06-16 12:02:16 -04:00
Gregory Sanders
13cdcfc979 Enable multithreaded validation of surjection proofs 2017-06-16 12:02:16 -04:00
Gregory Sanders
f9fd37cc8e Consensus: Add asset type to CTxOut and validation 2017-06-16 12:02:15 -04:00
Mark Friedenbach
ab72a3dc05 CT: Rename nCommitmentSize -> nCommittedSize 2017-06-16 12:02:15 -04:00
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