elements/src
Steven Roose 85eb5026de 2WP: Verify number of transactions in SPV proof
Use the getblockheader RPC from Bitcoin Core to verify if the number of
transactions mentioned in the SPV proof matches the number for the
block known by the Core daemon.

Inspired by 6b9dc8ceae
2018-09-15 13:25:41 -07:00
..
bench remove legacy peg-in/withdrawlocks 2017-11-06 09:51:45 -05:00
compat Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
config
consensus 2WP: QA: Introduce -con_parent_chain_signblockscript 2018-08-16 19:29:23 +02:00
crypto Add mistate output to CSHA256. 2017-06-16 12:02:17 -04:00
global Allow default asset name to be set via param 2018-07-12 18:51:49 +01:00
leveldb Merge in LevelDB 1.19 changes 2016-12-01 16:14:45 -08:00
obj
obj-test
policy remove witnessEnabled standardness logic 2018-03-13 12:20:24 -04:00
primitives 2WP: Verify number of transactions in SPV proof 2018-09-15 13:25:41 -07:00
qt Only use chainparams to access BITCOINID as pegged_asset 2017-08-24 14:30:35 -04:00
rpc expose CBlockIndex::nTx in getblock(header) 2018-09-15 13:25:20 -07:00
script Merge #350: Make block solutions more strictly validated 2018-05-30 10:36:31 -04:00
secp256k1 update libsecp256k1-zkp to f1c601ed9d6c990a164305bf1b552952d16547da 2018-05-23 17:02:50 +00:00
support Use RPC calls to check bitcoin blocks are valid and confirmed 2017-06-15 14:20:38 -04:00
test Allow default asset name to be set via param 2018-07-12 18:51:49 +01:00
univalue Merge commit '2ca7faab42' into HEAD 2016-09-30 19:58:11 +02:00
wallet 2WP: Verify number of transactions in SPV proof 2018-09-15 13:25:41 -07:00
zmq Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
.clang-format [doc] Remove unused clang format dev script 2017-01-28 16:57:08 +01:00
addrdb.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
addrdb.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
addrman.cpp Use z = std::max(x - y, 0); instead of z = x - y; if (z < 0) z = 0; 2017-02-07 15:46:38 +01:00
addrman.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
amount.cpp CA: CAssetID -> CAsset 2017-06-16 12:02:33 -04:00
amount.h Only use chainparams to access BITCOINID as pegged_asset 2017-08-24 14:30:35 -04:00
arith_uint256.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
arith_uint256.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
assetsdir.cpp Allow default asset name to be set via param 2018-07-12 18:51:49 +01:00
assetsdir.h Allow default asset name to be set via param 2018-07-12 18:51:49 +01:00
base58.cpp New address prefix: CTE 2017-06-16 12:02:14 -04:00
base58.h New address prefix: CTE 2017-06-16 12:02:14 -04:00
bitcoin-cli-res.rc Migrate project naming from "Beta" to "Elements" 2017-06-16 12:02:14 -04:00
bitcoin-cli.cpp Fix elements-cli help: s/bitcoin-cli/elements-cli/ 2017-06-16 12:02:37 -04:00
bitcoin-tx-res.rc Migrate project naming from "Beta" to "Elements" 2017-06-16 12:02:14 -04:00
bitcoin-tx.cpp remove legacy peg-in/withdrawlocks 2017-11-06 09:51:45 -05:00
bitcoind-res.rc Migrate project naming from "Beta" to "Elements" 2017-06-16 12:02:14 -04:00
bitcoind.cpp [Trivial] Change 'bitcoin-cli' to 'elements-cli' in error message 2017-06-16 12:02:14 -04:00
blind.cpp Under certain circumstances we don't need to blind at all, allow it 2018-04-09 10:45:29 -04:00
blind.h blindrawtransaction takes auxiliary generator args 2017-06-16 12:02:36 -04:00
blockencodings.cpp Segwit: Rename CTransaction::GetWitnessHash() -> CTransaction::GetHashWithWitness() 2017-06-16 12:02:34 -04:00
blockencodings.h [trivial] Fix typos in comments 2017-01-27 21:22:35 +01:00
bloom.cpp Refactor: Remove using namespace <xxx> from src/*.cpp. 2017-01-27 18:13:20 +09:00
bloom.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
callrpc.cpp 2WP: Verify number of transactions in SPV proof 2018-09-15 13:25:41 -07:00
callrpc.h 2WP: Verify number of transactions in SPV proof 2018-09-15 13:25:41 -07:00
chain.cpp Implement basic private chain mode 2017-06-15 14:20:37 -04:00
chain.h block header commits to height 2017-06-16 12:02:12 -04:00
chainparams.cpp 2WP: QA: Introduce -con_parent_chain_signblockscript 2018-08-16 19:29:23 +02:00
chainparams.h Allow initial reissuance token count to be set via param 2018-07-12 18:52:23 +01:00
chainparamsbase.cpp give hint on chain argument for -cli usage 2018-08-16 11:28:04 -04:00
chainparamsbase.h Chainparams: Unify CRegTestParams and CCustomParams 2018-02-19 09:38:26 +01:00
checkpoints.cpp [MOVEONLY] Move progress estimation out of checkpoints 2017-01-04 13:18:49 -08:00
checkpoints.h [MOVEONLY] Move progress estimation out of checkpoints 2017-01-04 13:18:49 -08:00
checkqueue.h Multithreaded amount commitment and range proof checking 2017-06-16 12:02:13 -04:00
clientversion.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
clientversion.h bump elements version to 2.14.1.1 2017-11-08 11:47:22 -05:00
coins.cpp begin consensus support for peg-ins 2017-11-06 10:54:50 -05:00
coins.h [Hard-Fork] CT/CA: Put the asset surjection proof, value range proof, and issuance rangeproofs under the witness commitment 2017-06-16 12:02:34 -04:00
compat.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
compressor.cpp
compressor.h CT: CTxOutValue::IsAmount() -> CTxOutValue::IsExplicit() 2017-06-16 12:02:34 -04:00
core_io.h changed elements serialization to new style with no marker 0x00 byte and witness data at the end 2017-10-08 11:36:05 -04:00
core_memusage.h include the CTxWitness structure in memory usage accounting. 2017-09-21 13:25:17 -07:00
core_read.cpp changed elements serialization to new style with no marker 0x00 byte and witness data at the end 2017-10-08 11:36:05 -04:00
core_write.cpp [Hard-Fork] CT/CA: Put the asset surjection proof, value range proof, and issuance rangeproofs under the witness commitment 2017-06-16 12:02:34 -04:00
cuckoocache.h [trivial] Fix typos in comments 2017-01-27 21:22:35 +01:00
dbwrapper.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
dbwrapper.h Merge #9353: Add data() method to CDataStream (and use it) 2017-01-09 08:47:47 -08:00
hash.cpp Remove redundant semicolons 2017-01-14 21:45:32 +01:00
hash.h Avoid VLA in hash.h 2017-02-28 12:48:19 +01:00
httprpc.cpp Add thread-local storage of rpc username 2017-06-16 12:02:12 -04:00
httprpc.h
httpserver.cpp Access WorkQueue::running only within the cs lock. 2017-02-03 13:50:17 -05:00
httpserver.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
indirectmap.h prepend license statement to indirectmap 2016-07-27 16:27:07 -07:00
init.cpp Merge #362: 2WP: Allow other elements chains as parent chains for pegs 2018-09-07 00:16:19 +02:00
init.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
issuance.cpp Move asset issuance funcionality to own file 2017-06-16 12:02:35 -04:00
issuance.h Move asset issuance funcionality to own file 2017-06-16 12:02:35 -04:00
key.cpp Add blinding transaction-creation code 2017-06-15 14:30:12 -04:00
key.h Add blinding transaction-creation code 2017-06-15 14:30:12 -04:00
keystore.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
keystore.h Bump copyright headers to 2015 2015-12-13 18:08:39 +01:00
limitedmap.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
Makefile.am add pegin witness validation and extraction helper functions 2017-11-06 10:13:28 -05:00
Makefile.bench.include Add Basic CheckQueue Benchmark 2017-01-09 14:07:02 -05:00
Makefile.leveldb.include Merge #8826: Do not include env_win.cc on non-Windows systems 2016-09-29 17:27:28 +02:00
Makefile.qt.include Migrate project naming from "Beta" to "Elements" 2017-06-16 12:02:14 -04:00
Makefile.qttest.include Migrate project naming from "Beta" to "Elements" 2017-06-16 12:02:14 -04:00
Makefile.test.include Add unit tests for peg-in authorization 2017-11-06 10:54:51 -05:00
memusage.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
merkleblock.cpp Refactor: Remove using namespace <xxx> from src/*.cpp. 2017-01-27 18:13:20 +09:00
merkleblock.h 2WP: Verify number of transactions in SPV proof 2018-09-15 13:25:41 -07:00
miner.cpp NO-HF: Move block.proof.challenge to Consensus::Params::signblockscript 2018-07-10 03:51:43 +02:00
miner.h getnewblockhex: add ability to pass over transactions based on mempool age 2018-04-25 12:24:44 -04:00
net.cpp Add missing braces in semaphore posts in net 2017-03-17 14:56:57 -07:00
net.h net: define NodeId as an int64_t 2017-04-14 10:35:49 +02:00
net_processing.cpp Segwit: Rename CTransaction::GetWitnessHash() -> CTransaction::GetHashWithWitness() 2017-06-16 12:02:34 -04:00
net_processing.h Net: pass interruptMsgProc as const where possible 2017-01-31 23:45:47 +01:00
netaddress.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
netaddress.h [trivial] Fix typos in comments 2017-01-27 21:22:35 +01:00
netbase.cpp Use Socks5ErrorString() to decode error responses from socks proxy. 2017-06-16 12:02:12 -04:00
netbase.h Merge #9289: net: drop boost::thread_group 2017-01-04 12:21:53 +01:00
netmessagemaker.h Net: Make CNetMsgMaker more const 2017-01-31 23:29:28 +01:00
noui.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
noui.h Bump copyright headers to 2014 2016-01-05 21:01:39 +01:00
pow.cpp 2WP: QA: Introduce -con_parent_chain_signblockscript 2018-08-16 19:29:23 +02:00
pow.h 2WP: QA: Introduce -con_parent_chain_signblockscript 2018-08-16 19:29:23 +02:00
prevector.h prevector: assert successful allocation 2017-02-28 11:40:50 +01:00
protocol.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
protocol.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
pubkey.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
pubkey.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
random.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
random.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
rest.cpp CT: CTxOutValue::IsAmount() -> CTxOutValue::IsExplicit() 2017-06-16 12:02:34 -04:00
reverselock.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
scheduler.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
scheduler.h
serialize.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
streams.h Merge #9353: Add data() method to CDataStream (and use it) 2017-01-09 08:47:47 -08:00
sync.cpp Further-enforce lockordering by enforcing directly after TRY_LOCKs 2017-02-07 14:15:28 -05:00
sync.h Break addnode out from the outbound connection limits. 2017-01-05 19:02:09 +00:00
threadinterrupt.cpp net: add CThreadInterrupt and InterruptibleSleep 2017-01-03 17:53:09 -05:00
threadinterrupt.h net: add CThreadInterrupt and InterruptibleSleep 2017-01-03 17:53:09 -05:00
threadsafety.h Bump copyright headers to 2014 2016-01-05 21:01:39 +01:00
timedata.cpp Refactor: Remove using namespace <xxx> from src/*.cpp. 2017-01-27 18:13:20 +09:00
timedata.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
tinyformat.h util: Update tinyformat 2016-06-27 18:17:27 +02:00
torcontrol.cpp [trivial] Fix typos in comments 2017-01-27 21:22:35 +01:00
torcontrol.h torcontrol improvements and fixes 2015-11-12 17:58:15 +01:00
txdb.cpp remove legacy peg-in/withdrawlocks 2017-11-06 09:51:45 -05:00
txdb.h remove legacy peg-in/withdrawlocks 2017-11-06 09:51:45 -05:00
txmempool.cpp remove orphaned descendents of peg-ins on block receive 2018-01-24 09:51:18 -05:00
txmempool.h Make boost::multi_index comparators const 2017-12-22 15:46:04 +09:00
ui_interface.cpp [wallet] Add high transaction fee warnings 2016-09-26 01:11:27 +02:00
ui_interface.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
uint256.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
uint256.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
undo.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
util.cpp fixup! Elements Beta branding 2017-06-23 10:56:40 +09:00
util.h added functions to rpc logging 2017-06-16 12:02:12 -04:00
utilmoneystr.cpp Bump copyright headers to 2015 2015-12-13 18:08:39 +01:00
utilmoneystr.h Bump copyright headers to 2015 2015-12-13 18:08:39 +01:00
utilstrencodings.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
utilstrencodings.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
utiltime.cpp [trivial] Fix typos in comments 2017-01-27 21:22:35 +01:00
utiltime.h net: Consistently use GetTimeMicros() for inactivity checks 2017-01-25 09:48:14 -05:00
validation.cpp 2WP: Verify number of transactions in SPV proof 2018-09-15 13:25:41 -07:00
validation.h Check parent RPC version on startup 2018-09-15 13:25:34 -07:00
validationinterface.cpp Add a CValidationInterface::NewPoWValidBlock callback 2017-01-05 10:32:07 -05:00
validationinterface.h Better document usage of SyncTransaction 2017-01-23 15:43:22 -05:00
version.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
versionbits.cpp Activate CSV and Segwit immediately 2017-06-16 12:02:13 -04:00
versionbits.h RPC: augment getblockchaininfo bip9_softforks data 2016-10-19 09:08:39 -04:00
warnings.cpp Move GetWarnings() into its own file. 2016-12-03 07:17:34 +00:00
warnings.h Move GetWarnings() into its own file. 2016-12-03 07:17:34 +00:00