2

I'm considering two scenarios of hacking freshly installed bitcoin core node.

  1. Does freshly installed bitcoin-core node have genesis block included in the installation?

  2. This fresh node contacts some peer for downloading blockchain. Can malicious peer give node wrong chain? Is this attack possible and how is it mitigated in bitcoin?

1 Answer 1

3

Does freshly installed bitcoin-core node have genesis block included in the installation?

Yes.

This fresh node contacts some peer for downloading blockchain. Can malicious peer give node wrong chain? Is this attack possible and how is it mitigated in bitcoin?

There is no way for the chain to be "wrong" that would not be detectable to the node. If it's invalid, the node will reject it. If there's a longer chain, the node will reject the shorter chain. If it's the longest, valid chain, it's not wrong.

3
  • So bitcoin relys on the fact that the node will eventually manage to get the main (longest) blockchain from honest peer?
    – croraf
    Nov 2, 2017 at 21:53
  • @croraf That's unavoidable. There's simply no way to make the system work without at least one honest peer. No honest peers is equivalent to no network access at all. Nov 2, 2017 at 21:54
  • 1
    by default the node will attempt to get connected to 30 peers, which usually contains enough honest peers to resolve any conflicts. Nov 3, 2017 at 7:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.