fix serialization of paych vouchers

This commit is contained in:
whyrusleeping
2019-11-04 11:07:11 -08:00
parent 09e8cdc109
commit 83868d3eed
8 changed files with 259 additions and 22 deletions
+10
View File
@@ -9,6 +9,7 @@ import (
"github.com/filecoin-project/lotus/chain/actors"
"github.com/filecoin-project/lotus/chain/deals"
"github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/paych"
)
func main() {
@@ -32,6 +33,15 @@ func main() {
os.Exit(1)
}
err = gen.WriteTupleEncodersToFile("./paych/cbor_gen.go", "paych",
paych.VoucherInfo{},
paych.ChannelInfo{},
)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
/*
err = gen.WriteTupleEncodersToFile("./chain/cbor_gen.go", "chain",
chain.BlockSyncRequest{},