Browse Source

abci header takes ValidatorsHash

pull/1667/head
Ethan Buchman 6 years ago
parent
commit
2897685c57
3 changed files with 12 additions and 11 deletions
  1. +4
    -4
      Gopkg.lock
  2. +1
    -1
      Gopkg.toml
  3. +7
    -6
      types/protobuf.go

+ 4
- 4
Gopkg.lock View File

@ -238,8 +238,8 @@
"server",
"types"
]
revision = "9af8b7a7c87478869f8c280ed9539470b8f470b4"
version = "v0.11.0-rc4"
revision = "7cf66f570e2f47b286985e2d688b0a400c028e4c"
version = "v0.11.0-rc6"
[[projects]]
branch = "master"
@ -293,7 +293,7 @@
"ripemd160",
"salsa20/salsa"
]
revision = "df8d4716b3472e4a531c33cedbe537dae921a1a9"
revision = "b47b1587369238182299fe4dad77d05b8b461e06"
[[projects]]
branch = "master"
@ -374,6 +374,6 @@
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "6d7d755329cebd1f640324a38507c41b638ca0898737db9d633c75eff58c46f0"
inputs-digest = "132980da98fc92b6c0dd988df07316a340f5fc91ee77593cf984ade4e3e5fd62"
solver-name = "gps-cdcl"
solver-version = 1

+ 1
- 1
Gopkg.toml View File

@ -71,7 +71,7 @@
[[constraint]]
name = "github.com/tendermint/abci"
version = "~0.11.0-rc4"
version = "~0.11.0-rc6"
[[constraint]]
name = "github.com/tendermint/go-crypto"


+ 7
- 6
types/protobuf.go View File

@ -32,12 +32,13 @@ type tm2pb struct{}
func (tm2pb) Header(header *Header) abci.Header {
return abci.Header{
ChainID: header.ChainID,
Height: header.Height,
Time: header.Time.Unix(),
NumTxs: int32(header.NumTxs), // XXX: overflow
LastBlockHash: header.LastBlockID.Hash,
AppHash: header.AppHash,
ChainID: header.ChainID,
Height: header.Height,
Time: header.Time.Unix(),
NumTxs: int32(header.NumTxs), // XXX: overflow
LastBlockHash: header.LastBlockID.Hash,
ValidatorsHash: header.ValidatorsHash,
AppHash: header.AppHash,
}
}


Loading…
Cancel
Save