News for hackers. Stuff that matters.
Re:Learn Blockchains by Building One by zeroxfe on Saturday September 30, 2017 @03:49PM (#15374699)
It's actually not that hard. Most blockchains use a variation of Gossip, which is quite trivial to implement. On startup, your nodes get a list of seed nodes, recursively ask for peer lists until they can connect to some "max peer count."

When they receive transactions (from a client, or a peer), they simply forward them to all other peers (if it's the first time they've seen them.)

That's basically it. :-)

There are no comments on this comment yet.