Skip to content

Commit

Permalink
Merge pull request #143 from covalenthq/develop
Browse files Browse the repository at this point in the history
Bsp-geth-DTM-RC:v1.4.3-bsp (Withdrawals Fix)
  • Loading branch information
noslav authored Apr 19, 2023
2 parents d96d7c0 + 8ffa4d3 commit ab03cbc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions core/block_replica.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,14 @@ func (bc *BlockChain) createReplica(block *types.Block, replicaConfig *ReplicaCo
}

// withdrawals
withdrawalsExp := make([]*types.WithdrawalForExport, len(block.Withdrawals()))
withdrawalsRlp := make([]*types.WithdrawalExportRLP, len(block.Withdrawals()))
for i, withdrawal := range block.Withdrawals() {
withdrawalsExp[i] = (*types.WithdrawalForExport)(withdrawal)
withdrawalsRlp[i] = withdrawalsExp[i].ExportWithdrawal()
var withdrawalsRlp []*types.WithdrawalExportRLP = nil
if chainConfig.IsShanghai(block.Time()) {
withdrawalsExp := make([]*types.WithdrawalForExport, len(block.Withdrawals()))
withdrawalsRlp = make([]*types.WithdrawalExportRLP, len(block.Withdrawals()))
for i, withdrawal := range block.Withdrawals() {
withdrawalsExp[i] = (*types.WithdrawalForExport)(withdrawal)
withdrawalsRlp[i] = withdrawalsExp[i].ExportWithdrawal()
}
}

//receipts
Expand Down
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const (
const (
BspVersionMajor = 1 // Major version component of the current release
BspVersionMinor = 4 // Minor version component of the current release
BspVersionPatch = 2 // Patch version component of the current release
BspVersionPatch = 3 // Patch version component of the current release
)

// Version holds the textual version string.
Expand Down

0 comments on commit ab03cbc

Please sign in to comment.