From d08ea35d0e4bfe437b7d1910829300fbb49a18f0 Mon Sep 17 00:00:00 2001 From: Alfonso de la Rocha Date: Mon, 6 Dec 2021 11:53:05 +0100 Subject: [PATCH] added NOTE comment --- .../consensus/hierarchical/checkpoints/schema/checkpoint.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chain/consensus/hierarchical/checkpoints/schema/checkpoint.go b/chain/consensus/hierarchical/checkpoints/schema/checkpoint.go index b58ad2ac6..e1cba66f6 100644 --- a/chain/consensus/hierarchical/checkpoints/schema/checkpoint.go +++ b/chain/consensus/hierarchical/checkpoints/schema/checkpoint.go @@ -19,6 +19,12 @@ import ( // Linkproto is the default link prototype used for Checkpoints // It uses the default CidBuilder for Filecoin (see abi) +// +// NOTE: Maybe we should consider using another CID proto +// for checkpoints so they can be identified uniquely. +// This may fix the error faced when using Links in the +// Checkpoint schema. We had to hide checkpoints behind []byte +// so they're not interpreted as links from the state tree. var Linkproto = cidlink.LinkPrototype{ Prefix: cid.Prefix{ Version: 1,