satwikkansal / python_blockchain_app

A fully functional blockchain application implemented in Python from scratch (with tutorial).
819 stars 471 forks source link

Persistence #66

Closed developer79433 closed 1 year ago

developer79433 commented 1 year ago

This optionally saves and restores the node's blockchain and its list of peers to/from a JSON file named in the environment variable DATA_FILE, if that variable is set. If it's not set it does nothing.

developer79433 commented 1 year ago

There are merge commits on this branch - do you want me to squash/rebase?

tianshanchuan commented 1 year ago

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

satwikkansal commented 1 year ago

@developer79433 thanks again for this, I squashed and merged it, and saving the blockchain to disk on sigterm was a good idea!