[sync] fix error of cross-shard transaction

pull/3612/head
Jacky Wang 4 years ago
parent 9a27b46bb8
commit cfb71007b9
No known key found for this signature in database
GPG Key ID: 1085CE5F4FF5842C
  1. 2
      api/service/legacysync/syncing.go
  2. 2
      internal/chain/engine.go

@ -813,7 +813,7 @@ func (ss *StateSync) UpdateBlockAndStatus(block *types.Block, bc *core.BlockChai
// Verify signature every 100 blocks
verifySeal := block.NumberU64()%verifyHeaderBatchSize == 0 || verifyAllSig
verifyCurrentSig := verifyAllSig && verifySeal
if haveCurrentSig {
if verifyCurrentSig {
sig, bitmap, err := chain.ParseCommitSigAndBitmap(block.GetCurrentCommitSig())
if err != nil {
return errors.Wrap(err, "parse commitSigAndBitmap")

@ -418,7 +418,7 @@ func (e *engineImpl) verifyHeaderSignature(chain engine.ChainReader, header *blo
if err != nil {
return err
}
shardComm, err := ss.FindCommitteeByID(chain.ShardID())
shardComm, err := ss.FindCommitteeByID(header.ShardID())
if err != nil {
return err
}

Loading…
Cancel
Save