Skip to content
#

dpos

Here are 49 public repositories matching this topic...

node
PresidentNavalny
PresidentNavalny commented Jul 22, 2019

My English is not perfect, so for a better understanding of the problem, after the English description I posted the Russian version of this text because most of the developers are Russian

I decided not to supplement the previous report #45, but to create a new one to highlight the problem. There are many similar methods that allow you to stop the network

To Reproduce
Shut down the netwo

AlexiaChen
AlexiaChen commented Dec 18, 2019

BTC 检查点(CheckPoint)调研报告

BTC源码

BTC官方源码是C++写的,但是有一个官方认可的全节点是golang写的,叫btcd。

此调研报告是基于btcd源码的调研。毕竟golang的源码可读性高太多了,C++短期一下子可能搞不明白。

BTCD检查点的实现

检查点的组织结构

检查点的实现源码文件叫checkpoints.go,在blockchain目录下。

CheckPoint被描述为一个块高度和块Hash的二元组结构体:

type Checkpoint struct {
	Height int32
	Hash   *chainhash.Hash
}

该结构体对象出现在BlockChain结构体中,为该类的一个属性,从目录结构和代码组织结构上看,CheckPoin

Improve this page

Add a description, image, and links to the dpos topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the dpos topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.