Make types use Amino; Refactor PrivValidator* to FilePV/SocketPV

This commit is contained in:
Jae Kwon
2018-03-31 00:18:43 +02:00
parent 901b456151
commit 34974e3932
40 changed files with 856 additions and 1899 deletions

View File

@@ -6,7 +6,6 @@ import (
"time"
"github.com/tendermint/go-crypto"
"github.com/tendermint/tendermint/wire"
)
var (
@@ -51,10 +50,7 @@ func (p *Proposal) String() string {
// SignBytes returns the Proposal bytes for signing
func (p *Proposal) SignBytes(chainID string) []byte {
bz, err := wire.MarshalJSON(CanonicalJSONOnceProposal{
ChainID: chainID,
Proposal: CanonicalProposal(p),
})
bz, err := cdc.MarshalJSON(CanonicalProposal(chainID, p))
if err != nil {
panic(err)
}