From 4a326b33e49419803d80000f849f4cb31a255fc7 Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Thu, 5 Dec 2019 03:27:52 -0800 Subject: [PATCH] Store CX receipts in blocks in CrossTxEpoch Previously, CX receipt storage started at CrossTxEpoch+1, causing incoming CX receipts in blocks in CrossTxEpoch to be lost. --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index 29a09531a..40fb0a283 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1102,7 +1102,7 @@ func (bc *BlockChain) WriteBlockWithState( //// Cross-shard txns epoch := block.Header().Epoch() - if bc.chainConfig.AcceptsCrossTx(block.Epoch()) { + if bc.chainConfig.HasCrossTxFields(block.Epoch()) { shardingConfig := shard.Schedule.InstanceForEpoch(epoch) shardNum := int(shardingConfig.NumShards()) for i := 0; i < shardNum; i++ {