双花检查研究

Bitcoin

代码

  • https://github.com/dindinw/bitcoin/blob/alex_tx_test/src/test/txvalidationcache_tests.cpp
$ ./test_bitcoin --log_level=unit_scope --run_test=tx_validationcache_tests/tx_mempool_block_doublespend

Using Web service to check unspent BTC

  • BCI
    • https://blockchain.info/unspent?active=<your_addr>
  • Chain.So
    • https://chain.so/api/v2/get_tx_unspent/BTC/<your_addr>

Ethereum

Byteball

代码

  • https://github.com/byteball/byteballcore/blob/master/validation.js#L1443
  • https://github.com/byteball/byteballcore/blob/master/validation.js#L1570,L1675
  • https://github.com/byteball/byteballcore/blob/master/graph.js#L116,L167