[ethereum/go-ethereum] contracts: add checkpoint registrar smart contract (#16842)

rjl493456442 commented on this pull request.

> + “github.com/ethereum/go-ethereum/common”
+ “github.com/ethereum/go-ethereum/common/hexutil”
+)
+
+var (
+ errNoStableCheckpoint = errors.New(“no stable checkpoint provided”)
+)
+
+// PublicLesServerAPI provides an API to access the les server.
+// It offers only methods that operate on public data that is freely available to anyone.
+type PublicLesServerAPI struct {
+ server *LesServer
+}
+
+// NewPublicLesServerAPI creates a new les server API.
+func NewPublicLesServerAPI(server *LesServer) *PublicLesServerAPI {

Will move these logics to a subsequent PR

This post was last modified on July 11, 2018, 7:51 am