From 8903fb4f196537c490d472ed6b2bc029248777b7 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Wed, 2 Oct 2019 14:49:38 -0600 Subject: [PATCH] handle looking for messages executed by the genesis block --- chain/store/store.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chain/store/store.go b/chain/store/store.go index fb41d2c41..9c4d77204 100644 --- a/chain/store/store.go +++ b/chain/store/store.go @@ -701,6 +701,11 @@ func (cs *ChainStore) WaitForMessage(ctx context.Context, mcid cid.Cid) (*types. } func (cs *ChainStore) tipsetExecutedMessage(ts *types.TipSet, msg cid.Cid) (*types.MessageReceipt, error) { + // The genesis block did not execute any messages + if ts.Height() == 0 { + return nil, nil + } + pts, err := cs.LoadTipSet(ts.Parents()) if err != nil { return nil, err