Start processing ingress CXRs at CrossTxEpoch

Previously, ingress CX receipts began to be processed in CrossTxEpoch+1,
causing processing of early-day CXs to be delayed up to a full epoch.
pull/1964/head
Eugene Kim 5 years ago
parent 4a326b33e4
commit 77354c48aa
  1. 2
      node/node_newblock.go

@ -167,7 +167,7 @@ func (node *Node) proposeNewBlock() (*types.Block, error) {
} }
func (node *Node) proposeReceiptsProof() []*types.CXReceiptsProof { func (node *Node) proposeReceiptsProof() []*types.CXReceiptsProof {
if !node.Blockchain().Config().AcceptsCrossTx(node.Worker.GetCurrentHeader().Epoch()) { if !node.Blockchain().Config().HasCrossTxFields(node.Worker.GetCurrentHeader().Epoch()) {
return []*types.CXReceiptsProof{} return []*types.CXReceiptsProof{}
} }

Loading…
Cancel
Save