Browse Source

types: revert to old wire. builds

pull/1265/head
Ethan Buchman 6 years ago
parent
commit
51628aea08
2 changed files with 13 additions and 5 deletions
  1. +5
    -5
      types/evidence.go
  2. +8
    -0
      wire/wire.go

+ 5
- 5
types/evidence.go View File

@ -80,13 +80,13 @@ func (evl EvidenceList) Has(evidence Evidence) bool {
//-------------------------------------------
const (
wireTypeEvidenceDuplicateVote = "com.tendermint.types.evidence.duplicate_vote"
evidenceTypeDuplicateVote = byte(0x01)
)
func init() {
wire.RegisterInterface((*Evidence)(nil), nil)
wire.RegisterConcrete(&DuplicateVoteEvidence{}, wireTypeEvidenceDuplicateVote, nil)
}
var _ = wire.RegisterInterface(
struct{ Evidence }{},
wire.ConcreteType{&DuplicateVoteEvidence{}, evidenceTypeDuplicateVote},
)
//-------------------------------------------


+ 8
- 0
wire/wire.go View File

@ -36,6 +36,14 @@ func UnmarshalJSON(jsonBz []byte, ptr interface{}) error {
return wire.UnmarshalJSON(jsonBz, ptr)
}
type ConcreteType = wire.ConcreteType
func RegisterInterface(o interface{}, ctypes ...ConcreteType) *wire.TypeInfo {
return wire.RegisterInterface(o, ctypes...)
}
const RFC3339Millis = wire.RFC3339Millis
/*
func RegisterInterface(ptr interface{}, opts *wire.InterfaceOptions) {


Loading…
Cancel
Save