mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-08 02:51:20 +00:00
Conform to new go-wire 1.0
This commit is contained in:
parent
31a456c8d4
commit
32b3a27a9a
@ -37,7 +37,7 @@ type PubKeyEd25519 [32]byte
|
|||||||
// For now, we artificially append the type byte in front to give us backwards
|
// For now, we artificially append the type byte in front to give us backwards
|
||||||
// compatibility for when the pubkey wasn't fixed length array
|
// compatibility for when the pubkey wasn't fixed length array
|
||||||
func (pubKey PubKeyEd25519) Address() []byte {
|
func (pubKey PubKeyEd25519) Address() []byte {
|
||||||
w, n, err := new(bytes.Buffer), new(int64), new(error)
|
w, n, err := new(bytes.Buffer), new(int), new(error)
|
||||||
wire.WriteBinary(pubKey[:], w, n, err)
|
wire.WriteBinary(pubKey[:], w, n, err)
|
||||||
if *err != nil {
|
if *err != nil {
|
||||||
PanicCrisis(*err)
|
PanicCrisis(*err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user