Skip to content

Commit

Permalink
bump version and bug fix for system contract (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx authored Mar 14, 2024
1 parent 2260e9f commit 3696b67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion consensus/parlia/parlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -1020,10 +1020,11 @@ func (p *Parlia) finalize(header *types.Header, state *state.IntraBlockState, tx
//log.Trace("slash validator", "block hash", header.Hash(), "address", spoiledVal)
var tx types.Transaction
var receipt *types.Receipt
if systemTxs, tx, receipt, err = p.slash(spoiledVal, state, header, len(txs), systemTxs, &header.GasUsed, mining); err != nil {
if _, tx, receipt, err = p.slash(spoiledVal, state, header, len(txs), systemTxs, &header.GasUsed, mining); err != nil {
// it is possible that slash validator failed because of the slash channel is disabled.
p.logger.Error("slash validator failed", "block hash", header.Hash(), "address", spoiledVal, "error", err)
} else {
systemTxs = systemTxs[1:]
txs = append(txs, tx)
receipts = append(receipts, receipt)
p.logger.Trace("slash successful", "txns", txs.Len(), "receipts", len(receipts), "gasUsed", header.GasUsed)
Expand Down
8 changes: 4 additions & 4 deletions params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ var (

// see https://calver.org
const (
VersionMajor = 1 // Major version component of the current release
VersionMinor = 1 // Minor version component of the current release
VersionMicro = 13 // Patch version component of the current release
VersionModifier = "dev" // Modifier component of the current release
VersionMajor = 1 // Major version component of the current release
VersionMinor = 2 // Minor version component of the current release
VersionMicro = 1 // Patch version component of the current release
VersionModifier = "beta" // Modifier component of the current release
VersionKeyCreated = "ErigonVersionCreated"
VersionKeyFinished = "ErigonVersionFinished"
)
Expand Down

0 comments on commit 3696b67

Please sign in to comment.