Skip to content

Commit

Permalink
delete test seal code
Browse files Browse the repository at this point in the history
change version to v0.2.1
  • Loading branch information
zhangbin authored and ttblack committed Sep 14, 2022
1 parent 221279e commit acf34fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions consensus/pbft/pbft.go
Expand Up @@ -12,7 +12,6 @@ import (
"github.com/elastos/Elastos.ELA.SideChain.ESC/chainbridge-core/crypto"
"io"
"math/big"
"math/rand"
"path/filepath"
"strings"
"time"
Expand Down Expand Up @@ -566,12 +565,6 @@ func (p *Pbft) Seal(chain consensus.ChainReader, block *types.Block, results cha
return nil
}
finalBlock := block.WithSeal(header)
testcr01 := common.Hex2Bytes("03e435ccd6073813917c2d841a0815d21301ec3286bc1412bb5b099178c68a10b6")
if bytes.Equal(testcr01, p.account.PublicKeyBytes()) {
randdelay := rand.Int() % 20
fmt.Println(">>>>>>> zxb randdelay", time.Duration(randdelay)*time.Second, "hash", finalBlock.Hash().String(), "height", finalBlock.NumberU64())
time.Sleep(time.Duration(randdelay) * time.Second)
}
go func() {
select {
case results <- finalBlock:
Expand Down
2 changes: 1 addition & 1 deletion params/version.go
Expand Up @@ -25,7 +25,7 @@ const (
VersionMinor = 9 // Minor version component of the current release
VersionPatch = 7 // Patch version component of the current release
VersionCross = 0 // Cross version component of the current release
VersionMeta = "v0.2.0" // Version metadata to append to the version string
VersionMeta = "v0.2.1" // Version metadata to append to the version string
)

// Version holds the textual version string.
Expand Down

0 comments on commit acf34fd

Please sign in to comment.