OSDN Git Service

feat: add build crosschain input (#91)
authorHAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Wed, 29 May 2019 10:16:17 +0000 (18:16 +0800)
committerPaladz <yzhu101@uottawa.ca>
Wed, 29 May 2019 10:16:17 +0000 (18:16 +0800)
commit6f7fe6fd7442ddcec8ee959c09b6d45639ef045f
treee9cca63fe6c3fc1805c735487312fa59fbeb2268
parent5d1c9664ba4d870ccabfd995766487e99d1cf1b5
feat: add build crosschain input (#91)

* wip: init DecodeCrossOutAction

* refactor: move DecodeCrossInAction to AccountMgr

* fix: fix account/builder.go

* fix: fix asset in crossInAction.Build

* update source in crossInAction.Build

* refactor: clean up

* fix: fix sourceID in crossInAction.Build

* init

* feat: serializeAssetDef & checkValidJSON

* fix

* refactor: add asset.Registry into accountManager

* wip: add asset definition comparison

* feat: cheack asset definition mismatch

* wip

* fix: add

* refactor: add lines

* wup

* revert

* clean

* revert

* merge

* wip

* revert

* clean

* fix

* fix

* clean

* fix

* clean

* fix MustDecodeHash

* fix

* clean up

* init saveExternalAssetDefinition

* fix

* fk

* update

* wip

* update

* draft

* update

* draft

* check replay

* clean

* init

* wwww

* draft conseus fed

* clean

* merfe

* clean

* clean

* clean

* fix https://github.com/Bytom/vapor/pull/77#discussion_r286745872

* fix https://github.com/Bytom/vapor/pull/77#discussion_r286742937

* fix https://github.com/Bytom/vapor/pull/77#discussion_r286744128

* fix https://github.com/Bytom/vapor/pull/77#discussion_r286744426

* fix https://github.com/Bytom/vapor/pull/77#discussion_r286744843

* fix https://github.com/Bytom/vapor/pull/77/files#r286744635 & https://github.com/Bytom/vapor/pull/77#discussion_r286744048 & https://github.com/Bytom/vapor/pull/77#discussion_r286743987

* fix https://github.com/Bytom/vapor/pull/77#discussion_r286744322

* minor

* update

* update

* minor

* format code

* fix

* use genesis config

* update

* update

* clean

* utxo database

* utxo database test

* aha

* wip

* wip

* wip

* claimed

* ???

* init

* foix

* dododod

* fk

* add mainchainOutputIDs

* roll back

* dododo

* update

* revert

* fix

* fix

* fk

* dd

* clean

* roll back

* fix detach

* clean up

* fix https://github.com/Bytom/vapor/pull/91#discussion_r287974764

* fix https://github.com/Bytom/vapor/pull/91#discussion_r287975636

* fix https://github.com/Bytom/vapor/pull/91#discussion_r287976043

* rm path

* fix https://github.com/Bytom/vapor/pull/91#discussion_r287974969

* use type for utxo

* uint32

* add iota

* fix https://github.com/Bytom/vapor/pull/91#discussion_r287980844

* modify build

* modify utxo type

* fix

* fix
30 files changed:
api/transact.go
asset/annotate.go
blockchain/txbuilder/actions.go
blockchain/txfeed/txfeed.go
config/genesis.go
consensus/federation/federation.go [new file with mode: 0644]
database/storage/storage.pb.go
database/storage/storage.proto
database/storage/utxo_entry.go
database/store_test.go
database/utxo_view.go
database/utxo_view_test.go
encoding/json/json.go
node/node.go
protocol/bc/tx.go
protocol/bc/types/map.go
protocol/bc/types/transaction.go
protocol/block.go
protocol/protocol.go
protocol/state/utxo_view.go
protocol/state/utxo_view_test.go
protocol/txpool_test.go
protocol/validation/vmcontext.go
test/bench_blockchain_test.go
test/chain_test_util.go
test/utxo_view/utxo_view_test.go
wallet/annotated.go
wallet/indexer.go
wallet/utxo.go
wallet/utxo_test.go