OSDN Git Service

votetx output (#62)
authorwz <mars@bytom.io>
Wed, 15 May 2019 04:54:56 +0000 (12:54 +0800)
committerPaladz <yzhu101@uottawa.ca>
Wed, 15 May 2019 04:54:56 +0000 (12:54 +0800)
commit58d0b58b6174e2eb2e694c232e0a8d1f59afea49
tree2ba0723818d781676193d4a2fbab6a3ae910c800
parentf3cc63da0daaba88d65b22aa0684c5893e438461
votetx output (#62)

* refactor: move ComputeOutputID() for SpendCommitment

* wip: init OutputType

* refactor: rename NewTxOutput to NewIntraChainTxOutput

* wip: typed intra-chain output

* feat: add CrossChainTxOutput

* fix: fix CrossChainOutputType

* doc: update todo

* init bc

* fix

* wip: bc NewIntraChainOutput

* fix: bc IntraChainOutput

* fix: fix tx.Output()

* move ComputeOutputID back

* fix types.NewIntraChainTxOutput & types.NewCrossChainTxOutput

* doc: update todo

* fix: add VMVersion, ControlProgram and AssetAmount for types.Output

* fix map.go

* fix txfeed

* fix peer.go

* fi

* rename

* fix TxOutput.readFrom()

* fix TxOutput.readFrom()

* use currentAssetVersion

* clean

* update todos

* add cross-chain in mapTx.go

* doc: update comments

* wip: check IntraChainOutput source in validation

* wip: checkValidDest() checks CrossChainOutput

* fix checkStandardTx

* fix: fix checkStandardTx

* fix: fix TxOutput.writeTo()

* fix hard-coded AssetVersion

* roll back assetVersion

* refactor: rename ComputeOutputID

* refactor: rename ComputeOutputID()

* fix blockchain/txbuilder/txbuilder_test.go

* fix: fix crosschainOut as Input

* doc: fix comments

* wip

* clean

* fix

* fix

* fix

* Add vote output for types and bc

* add uint test

* Add uint test

* modify name

* fix review
protocol/bc/bc.pb.go
protocol/bc/bc.proto
protocol/bc/tx.go
protocol/bc/types/map.go
protocol/bc/types/txoutput.go
protocol/bc/types/txoutput_test.go
protocol/bc/types/vote_txoutput.go [new file with mode: 0644]
protocol/bc/vote_output.go [new file with mode: 0644]