Conversation
unfortunately getting very close to 3.1M gas during deploy _height is only 1 more, when using Satoshi's genesis, but only possible for limited testing, so the TODO is removed and still documented in setInitialParent
There was a problem hiding this comment.
Calling feePaid in verifyTx instead of computeMerkle allows an attacker to re-implement its own verifyTx without the fee check, therefore using the full functionality of btcrelay without ever paying a fee to block header relayers.
|
Above commits have been "merged" to |
Storing headers cost ~2% more, but this is a reasonable tradeoff due to significant 700K gas cost savings during contract deployment and avoids complexities associated with requiring multiple contracts.
fix test_fee.py fourthRec to be tester.a4
|
Above commits have been "merged" to develop branch |
|
Latest code for review is https://github.com/ethereum/btcrelay (develop branch), but for now it doesn't offer easy way to make comments in code like this PR. |
|
For eligibility in bounty program, please check https://blog.ethereum.org/2016/02/17/btc_relay_included_in_bounty_program and the rules on bounty.ethdev.com (for example this pull request is on an old commit, so check that the bug you are submitting hasn't been covered in the Issues or already fixed in https://github.com/ethereum/btcrelay/tree/develop) |
separate out incentives; update README with live testnet info
BTC Relay is deployed on testnet (http://btcrelay.org).
A code/security review/audit is one of the major remaining items to deploy a version to Frontier.
To make it easier for you, the code has been separated.
1st commit has the contracts, start with
btcrelay.se.2nd has the tests.
Some of the TODO in the code are to ask for your feedback.
For remaining files, see https://github.com/ethereum/btcrelay
Please review and I'll be happy to acknowledge your contributions.
Thanks!