The invention discloses a method for realizing distributed
file storage based on a block chain. The method comprises the following steps: setting a node sending network access request information as an initiating node, and setting a node receiving the network access request information as a receiving node; constructing, by the receiving node receiving the network access request information, response information, sending the response information to the initiating node, and
broadcasting a message indicating that the initiating node accesses the network; and adding, by the initiating node receiving the response information, the ID of the receiving node to an ID
list of the initiating node. According to the method disclosed by the invention, the P2P
network architecture based on
the Internet is adopted, each node located in the same network is mutually equivalent and jointly provides and jointly enjoys the
network service, there is no special node, the topology between the nodes is organized not based on geographical positions, the nodes interconnected with a certain node may be far away from each other on the geographical positions; and the nodes interactively coordinate and cooperatively
handle services, and the method has the advantages of reliability, decentralization and openness.