Fig. 2From: Implementing a blockchain from scratch: why, how, and what we learnedProgram overview: The mining thread as well as up to n server threads and up to n client threads operate on the core tree data structure representing the blockchain and the state table representing the assignments of portions. The state of the data structure as well as auxiliary representations like time-slot-accurate portion assignments are persisted to disk. Server and client threads include watchdogs to detect and potentially resume lost connections to other nodesBack to article page