rename to metadata

This commit is contained in:
Callum Waters
2021-08-20 16:41:02 +02:00
parent 508b7f9758
commit beafe7d4f1
37 changed files with 342 additions and 342 deletions
+4 -4
View File
@@ -6,11 +6,11 @@ import (
"time"
"github.com/tendermint/tendermint/pkg/consensus"
"github.com/tendermint/tendermint/pkg/meta"
"github.com/tendermint/tendermint/pkg/metadata"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
)
func MakeRandomCommit(time time.Time) *meta.Commit {
func MakeRandomCommit(time time.Time) *metadata.Commit {
lastID := MakeBlockID()
h := int64(3)
voteSet, _, vals := RandVoteSet(h-1, 1, tmproto.PrecommitType, 10, 1)
@@ -21,8 +21,8 @@ func MakeRandomCommit(time time.Time) *meta.Commit {
return commit
}
func MakeCommit(blockID meta.BlockID, height int64, round int32,
voteSet *consensus.VoteSet, validators []consensus.PrivValidator, now time.Time) (*meta.Commit, error) {
func MakeCommit(blockID metadata.BlockID, height int64, round int32,
voteSet *consensus.VoteSet, validators []consensus.PrivValidator, now time.Time) (*metadata.Commit, error) {
// all sign
for i := 0; i < len(validators); i++ {