decentraland / bronzeage-node

DEPRECATED: This codebase will not be mantained anymore, and formats are going to change when we move to the Decentraland Iron Age
https://decentraland.org
Other
104 stars 22 forks source link

Switch to IPFS for content distribution #78

Closed ghost closed 7 years ago

ghost commented 7 years ago

Switch to IPFS for content distribution.

Replaces WebTorrent with IPFS. Publish, fetch, and tile transfer tested successfully on an isolated testnet.

Does not include a switch to suitable new network. Requires a new chain and a compatible genesis block. The relevant change is the content field of an output, previously a 32-byte torrent hash, is now a 34-byte IPFS hash.

Lowers memory usage of the node. Reduces errors in node output.

Primary work by @HPrivakos. Contributions, pointers, testing, and discussion from @thoragio, @eordano, and @Alonzo-Coeus.

ghost commented 7 years ago

IPFS currently doesn't work on Windows, so this change breaks the node on Windows.

HPrivakos commented 7 years ago

A bit more information:

kylerchin commented 7 years ago

:+1: Awesome! (hopefully we can get it working in windows, cuz old people have to use it.)

ghost commented 7 years ago

Noticed a problem with establishing the current content for a tile after content acquisition. Just pushed a fix for that.

ghost commented 7 years ago

This possibly resolves or obviates these issues:

Not sure why, but also stopped seeing these issues. Possibly resolves them for some unclear reason:

eordano commented 7 years ago

@martriay can we please merge this??

martriay commented 7 years ago

This work is continued in #81