OSDN Git Service

bytom/vapor.git
4 years agorefactor(federation): refactor db schema (#169)
HAOYUatHZ [Wed, 12 Jun 2019 13:20:43 +0000 (21:20 +0800)]
refactor(federation): refactor db schema (#169)

* add

* fix typo

4 years agoV0.1 docker (#166)
Chengcheng Zhang [Wed, 12 Jun 2019 11:38:04 +0000 (19:38 +0800)]
V0.1 docker (#166)

* modify docker

* update

* update

* update

* update

* update

* update

4 years agofeat: add processIssuing (#152)
HAOYUatHZ [Wed, 12 Jun 2019 09:33:30 +0000 (17:33 +0800)]
feat: add processIssuing (#152)

* init asset

* add confirmations

* fix

* add processBlock

* clean db

* add getAsset

* fix https://github.com/Bytom/vapor/pull/152#discussion_r291964871 & https://github.com/Bytom/vapor/pull/152#discussion_r291964144

* init AssetCache

* set maxAssetCached

* add rm get

* implement add get remove assetCache

* use assetCache instead of assetMap

* use hashicorp/golang-lru

* add bytom vendor

* fix submodule

* use golang/groupcache/lru

* fix https://github.com/Bytom/vapor/pull/152#discussion_r292805572

* fix asset create

4 years agoadd get-consensus-nodes api (#159)
muscle_boy [Wed, 12 Jun 2019 08:38:28 +0000 (16:38 +0800)]
add get-consensus-nodes api (#159)

* add get-consensus-nodes api

* add get vote result api

* bug fix

* remove is consensus node

* bug fix

* remove is consensus

* add sort for get vote result api

* rename

4 years agofix detach vote (#164)
muscle_boy [Wed, 12 Jun 2019 08:16:23 +0000 (16:16 +0800)]
fix detach vote (#164)

4 years agofix: waive charging storage gas for cross-chain (#162)
HAOYUatHZ [Wed, 12 Jun 2019 08:12:21 +0000 (16:12 +0800)]
fix: waive charging storage gas for cross-chain (#162)

* fix: do not charge storage gas for cross-chain

* fix: fix skip-storage-gas attack

4 years agomodify (#161)
wz [Wed, 12 Jun 2019 06:45:35 +0000 (14:45 +0800)]
modify (#161)

4 years agofix bug (#160)
Paladz [Wed, 12 Jun 2019 05:50:32 +0000 (13:50 +0800)]
fix bug (#160)

* fix bug

* fix bug

4 years agoadd witness to get block api (#158)
muscle_boy [Tue, 11 Jun 2019 08:32:09 +0000 (16:32 +0800)]
add witness to get block api (#158)

4 years agoadd api for vote num (#149)
wz [Tue, 11 Jun 2019 08:24:14 +0000 (16:24 +0800)]
add api for vote num (#149)

* add api for vote num

* fix review

* fix review

4 years agoprevent the double sign lock (#157)
Paladz [Tue, 11 Jun 2019 06:43:49 +0000 (14:43 +0800)]
prevent the double sign lock (#157)

4 years agoDel useless status update (#156)
yahtoo [Tue, 11 Jun 2019 06:18:52 +0000 (14:18 +0800)]
Del useless status update (#156)

4 years agoinit push for roll back in special case (#153)
Paladz [Tue, 11 Jun 2019 05:45:51 +0000 (13:45 +0800)]
init push for roll back in special case (#153)

* init push for roll back in special case

* edit for the problem

* edit the smal issue

* edit for code review

4 years agoadd docs for vote (#155)
wz [Tue, 11 Jun 2019 01:55:06 +0000 (09:55 +0800)]
add docs for vote (#155)

4 years agodoc: add cross-chain tx api doc (#154)
HAOYUatHZ [Tue, 11 Jun 2019 01:20:46 +0000 (09:20 +0800)]
doc: add cross-chain tx api doc (#154)

* init doc

* finish cross-chain api doc

* revert

* clean

4 years agofix reorganize vote result (#151)
muscle_boy [Mon, 10 Jun 2019 10:00:34 +0000 (18:00 +0800)]
fix reorganize vote result (#151)

4 years agoFix consensus msg sync bugs (#150)
yahtoo [Mon, 10 Jun 2019 09:27:51 +0000 (17:27 +0800)]
Fix consensus msg sync bugs (#150)

fix peer status update error
fix block signature mark error

4 years agoadd doc (#148)
HAOYUatHZ [Mon, 10 Jun 2019 08:19:34 +0000 (16:19 +0800)]
add doc (#148)

4 years agoFix get consensus edge case (#147)
muscle_boy [Mon, 10 Jun 2019 07:09:24 +0000 (15:09 +0800)]
Fix get consensus edge case (#147)

* fix get consensus node edge case

* fix get consensus node edge case

* fix get consensus node edge case

4 years agofeat: init cross_tx keepers (#146) fed_doc
HAOYUatHZ [Mon, 10 Jun 2019 06:56:23 +0000 (14:56 +0800)]
feat: init cross_tx keepers (#146)

* add config

* add config

* fix typos

4 years agofix bug for cancel vote (#145)
wz [Mon, 10 Jun 2019 06:40:28 +0000 (14:40 +0800)]
fix bug for cancel vote (#145)

4 years agoChange p2p SendRate/RecvRate limit (#144)
yahtoo [Mon, 10 Jun 2019 06:04:24 +0000 (14:04 +0800)]
Change p2p SendRate/RecvRate limit (#144)

4 years agoAdd p2p security module (#143)
yahtoo [Mon, 10 Jun 2019 02:41:36 +0000 (10:41 +0800)]
Add p2p security module (#143)

* tmp

* Add p2p security module

* Fix review bugs

4 years agofind whether config xpubs equal genesis block xpubs (#142)
Chengcheng Zhang [Thu, 6 Jun 2019 08:26:25 +0000 (16:26 +0800)]
find whether config xpubs equal genesis block xpubs (#142)

* find whether config xpubs equal genesis block xpubs

* update

4 years agoadd broadcast block signature (#139)
muscle_boy [Thu, 6 Jun 2019 02:10:11 +0000 (10:10 +0800)]
add broadcast block signature (#139)

4 years agoadd mac function, modify nextBlockTime (#122)
Chengcheng Zhang [Wed, 5 Jun 2019 13:36:31 +0000 (21:36 +0800)]
add mac function, modify nextBlockTime (#122)

* add mac function, modify nextBlockTime

* delete max function

* update

* modify block timestamp

* update

* update

* update

* update

* update

* update

* update

* update

4 years agoResolve consensus message sub error (#137)
yahtoo [Wed, 5 Jun 2019 06:27:43 +0000 (14:27 +0800)]
Resolve consensus message sub error (#137)

4 years agofeat: add fed orm (#136)
HAOYUatHZ [Wed, 5 Jun 2019 06:08:54 +0000 (14:08 +0800)]
feat: add fed orm (#136)

* init orm

* feat: add orm

* add status

* fix: fix type mismatch

4 years agoEdit bbft (#133)
Paladz [Wed, 5 Jun 2019 05:25:44 +0000 (13:25 +0800)]
Edit bbft (#133)

* Revert "Revert "edit" (#132)"

This reverts commit 885e0da9b0527988339a5039250ef88449adc95a.

* edit the consensus node

* fix the solo net

* edit for code review

4 years agofix: add CrossChainInput in NewTxVMContext (#124)
HAOYUatHZ [Wed, 5 Jun 2019 03:06:38 +0000 (11:06 +0800)]
fix: add CrossChainInput in NewTxVMContext (#124)

4 years agodoc: add fed sql schema (#134)
HAOYUatHZ [Wed, 5 Jun 2019 03:00:18 +0000 (11:00 +0800)]
doc: add fed sql schema (#134)

* doc: add gitignore

* chore: clean release-notes

* doc: update fed doc

* doc: add fed sql schema

4 years agoRevert "edit" (#132)
Paladz [Tue, 4 Jun 2019 09:02:10 +0000 (17:02 +0800)]
Revert "edit" (#132)

4 years agoedit (#129)
Paladz [Tue, 4 Jun 2019 08:59:48 +0000 (16:59 +0800)]
edit (#129)

4 years agoMerge branch 'v0.1' into merge_bbft
Paladz [Tue, 4 Jun 2019 08:59:31 +0000 (16:59 +0800)]
Merge branch 'v0.1' into merge_bbft

4 years agofix: use mainchain address for cross_chain_out (#131)
HAOYUatHZ [Tue, 4 Jun 2019 08:57:29 +0000 (16:57 +0800)]
fix: use mainchain address for cross_chain_out (#131)

* refactor: rename cross_out action

* clean

* fix: fix output address

4 years agoedit
paladz [Tue, 4 Jun 2019 08:09:15 +0000 (16:09 +0800)]
edit

4 years agofix: fix fed program (#127)
HAOYUatHZ [Tue, 4 Jun 2019 07:43:53 +0000 (15:43 +0800)]
fix: fix fed program (#127)

* fix FederationProgrom

* fix: fix log

4 years agovalidate vote pubkey (#128)
muscle_boy [Tue, 4 Jun 2019 07:40:43 +0000 (15:40 +0800)]
validate vote pubkey (#128)

4 years agotmp save (#123)
Paladz [Tue, 4 Jun 2019 06:06:34 +0000 (14:06 +0800)]
tmp save (#123)

* tmp save

* keep edit

* keep edit

* keep edit

* edit for run

* edit the config

4 years agoModify the p2p module encryption library (#125)
yahtoo [Tue, 4 Jun 2019 02:16:30 +0000 (10:16 +0800)]
Modify the p2p module encryption library (#125)

4 years agoinit push for easy code review (#121)
Paladz [Mon, 3 Jun 2019 09:15:40 +0000 (17:15 +0800)]
init push for easy code review (#121)

4 years agomodify list transaction (#119)
wz [Mon, 3 Jun 2019 07:35:57 +0000 (15:35 +0800)]
modify list transaction (#119)

4 years agoV0.1 num of consensus node (#118)
wz [Mon, 3 Jun 2019 07:35:09 +0000 (15:35 +0800)]
V0.1 num of consensus node (#118)

* modify num of consensus_node

* fix review

* fix review

4 years agoEdit consensus (#116)
Paladz [Mon, 3 Jun 2019 05:51:24 +0000 (13:51 +0800)]
Edit consensus (#116)

* move the config file

* edit the mining block time

4 years agofix timestamp (#115)
muscle_boy [Mon, 3 Jun 2019 02:56:05 +0000 (10:56 +0800)]
fix timestamp (#115)

4 years agoAdd mempool sync test (#114)
yahtoo [Mon, 3 Jun 2019 02:45:54 +0000 (10:45 +0800)]
Add mempool sync test (#114)

4 years agoFix mining (#113)
Paladz [Mon, 3 Jun 2019 01:46:56 +0000 (09:46 +0800)]
Fix mining (#113)

* delete the unused stuff

* edit the mining part

* fix small bug

4 years agofix sign block (#112)
muscle_boy [Sun, 2 Jun 2019 14:15:12 +0000 (22:15 +0800)]
fix sign block (#112)

* fix sign block

* rename

4 years agofix: fix api port (#108)
HAOYUatHZ [Sat, 1 Jun 2019 08:44:39 +0000 (16:44 +0800)]
fix: fix api port (#108)

4 years agoadd min vote num (#110)
wz [Sat, 1 Jun 2019 08:41:10 +0000 (16:41 +0800)]
add min vote num (#110)

4 years ago临时排坑 (#111)
muscle_boy [Sat, 1 Jun 2019 08:13:42 +0000 (16:13 +0800)]
临时排坑 (#111)

4 years agolittle edit (#107)
Paladz [Sat, 1 Jun 2019 06:36:24 +0000 (14:36 +0800)]
little edit (#107)

4 years agoFix vote (#106)
muscle_boy [Sat, 1 Jun 2019 06:27:24 +0000 (14:27 +0800)]
Fix vote (#106)

* fix vote

* fix vote

4 years agoadd coinbase staking (#105)
wz [Sat, 1 Jun 2019 06:22:01 +0000 (14:22 +0800)]
add coinbase staking (#105)

* add coinbase staking

* fix

* fix

* fix test

* fix ci

* fix ci

* fix review

* fix ci

4 years agoAccumulate vote (#104)
muscle_boy [Fri, 31 May 2019 07:16:25 +0000 (15:16 +0800)]
Accumulate vote (#104)

* accumulate vote

* bug fix

* fix ci

4 years agoaccumulate vote (#103)
muscle_boy [Fri, 31 May 2019 06:39:12 +0000 (14:39 +0800)]
accumulate vote (#103)

4 years agoadd time limit for votetx (#102)
wz [Fri, 31 May 2019 05:53:01 +0000 (13:53 +0800)]
add time limit for votetx (#102)

* add time limit for votetx

* fix

4 years agofix dpos nodes less than config number (#101)
oysheng [Fri, 31 May 2019 03:16:25 +0000 (11:16 +0800)]
fix dpos nodes less than config number (#101)

* fix dpos nodes less than config number

* optimise

* fix

4 years agoModify BlockSignatureMsg pubkey length (#100)
yahtoo [Fri, 31 May 2019 02:59:46 +0000 (10:59 +0800)]
Modify BlockSignatureMsg pubkey length (#100)

4 years agofix next leader time (#98)
muscle_boy [Fri, 31 May 2019 02:40:28 +0000 (10:40 +0800)]
fix next leader time (#98)

* fix next leader time

* launch

* fix verify block signature

4 years agoadd init consensus node as fed node (#97)
Paladz [Thu, 30 May 2019 07:36:31 +0000 (15:36 +0800)]
add init consensus node as fed node (#97)

* add init consensus node as fed node

* add node private key

* logic work

* edit for code review

* edit for code review

* fix in the real case

* fix for run

4 years agofix dpos (#96)
muscle_boy [Wed, 29 May 2019 10:24:08 +0000 (18:24 +0800)]
fix dpos (#96)

* fix dpos

* modify func name

4 years agofeat: add build crosschain input (#91)
HAOYUatHZ [Wed, 29 May 2019 10:16:17 +0000 (18:16 +0800)]
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

4 years agoFix block fetcher block insert bug (#95)
yahtoo [Wed, 29 May 2019 09:49:10 +0000 (17:49 +0800)]
Fix block fetcher block insert bug (#95)

4 years agofix vote result (#94)
muscle_boy [Wed, 29 May 2019 09:26:48 +0000 (17:26 +0800)]
fix vote result (#94)

* fix vote result

* bug fix

* bug fix

* opt code'

* opt code

* bug fix

* bug fix

4 years agoV0.1 cross chain input prog (#93)
wz [Wed, 29 May 2019 07:27:09 +0000 (15:27 +0800)]
V0.1 cross chain input prog (#93)

* add federation contract prog

* modify

* delete code

* add validate federation prog for crossinput

* fix

* fix

* fix

4 years agoAdd consensus messages transfer (#90)
yahtoo [Tue, 28 May 2019 13:39:07 +0000 (21:39 +0800)]
Add consensus messages transfer (#90)

* Add consensus messages transfer

* Abstract broadcast message processing

* opz code format

4 years agomodify miner block to propose block (#92)
muscle_boy [Tue, 28 May 2019 05:52:35 +0000 (13:52 +0800)]
modify miner block to propose block (#92)

* modify miner block to propose block

* modify miner block to propose block

4 years agoV0.1 federation parse (#89)
wz [Mon, 27 May 2019 16:18:10 +0000 (00:18 +0800)]
V0.1 federation parse (#89)

* add init federation

* add init

* add load federation info

* add test

4 years agoFormat netsync module code directory (#88)
yahtoo [Mon, 27 May 2019 07:30:22 +0000 (15:30 +0800)]
Format netsync module code directory (#88)

4 years agostore federation (#83)
wz [Thu, 23 May 2019 09:07:27 +0000 (17:07 +0800)]
store federation (#83)

* store federation

* fix test

* fix unit

* add deal err

* fix review

4 years agodispatch signature when proccess block (#85)
muscle_boy [Thu, 23 May 2019 09:01:05 +0000 (17:01 +0800)]
dispatch signature when proccess block (#85)

* dispatch signature when proccess block

* remove unuse code

* remove unuse code

* add event dispatcher to bbft

4 years agodpos process sign message (#81)
muscle_boy [Thu, 23 May 2019 01:55:12 +0000 (09:55 +0800)]
dpos process sign message (#81)

* dpos process sign message

* opt code

* opt code

4 years agoDpos process block (#69)
muscle_boy [Wed, 22 May 2019 06:29:17 +0000 (14:29 +0800)]
Dpos process block (#69)

* add bbft process block

* merge v0.1

* remove functional test

* opt code

* opt code

* opt code

* bug fix

* bug fix

* opt code

* opt code

* bug fix

* add update consensus node

* opt code

4 years agounvotetx action (#80)
wz [Tue, 21 May 2019 11:32:35 +0000 (19:32 +0800)]
unvotetx action (#80)

* add votetx output action

* add unvotetx action

* add voteoutput change

* add unit test

4 years agoadd votetx output action (#79)
wz [Tue, 21 May 2019 07:17:38 +0000 (15:17 +0800)]
add votetx output action (#79)

4 years agonetsync: add txs msg (#78)
yahtoo [Tue, 21 May 2019 06:22:26 +0000 (14:22 +0800)]
netsync: add txs msg (#78)

4 years agofeat: build cross-out tx (#74)
HAOYUatHZ [Mon, 20 May 2019 12:16:50 +0000 (20:16 +0800)]
feat: build cross-out tx (#74)

* wip: init for build cross_chain_out

* wip: init DecodeCrossOutAction

* fix: fix crossOutAction.Build()

* wip: rename test

* wip: init TestBuildCrossOut

* feat: add TestBuildCrossOut

* refactor: rename crossOutAction.ActionType

* refactor: add address instead of arbitrary in build crossOutAction

* fix: fix DefaultDataDir

* fix: fix TestBuildCrossOut

* refactor: clean up

4 years agofix votetx for validation (#75)
wz [Mon, 20 May 2019 07:48:40 +0000 (15:48 +0800)]
fix votetx for validation (#75)

4 years agoV0.1 votetx utxo (#73)
wz [Mon, 20 May 2019 06:37:55 +0000 (14:37 +0800)]
V0.1 votetx utxo (#73)

* Modify utxo for votetx

* fix review

* fix test

4 years agotest: add utxo test for cross-chain tx (#72)
HAOYUatHZ [Mon, 20 May 2019 03:22:58 +0000 (11:22 +0800)]
test: add utxo test for cross-chain tx (#72)

* init utxo test for cros

* fix: fix utxo test

* test: add CrossChainOutput utxo test

* wip: init cross-in utxo test

* test: add cross-in utxo test

4 years agots to ms (#71)
Paladz [Mon, 20 May 2019 03:10:59 +0000 (11:10 +0800)]
ts to ms (#71)

4 years agotest: add read/write test for cross-chain input/output (#70)
HAOYUatHZ [Mon, 20 May 2019 01:46:04 +0000 (09:46 +0800)]
test: add read/write test for cross-chain input/output (#70)

* fix read/wrire CrossChainInput

* add TestSerializationCrossChainTxOutput

4 years agofeature: add cross-chain input (#61)
HAOYUatHZ [Fri, 17 May 2019 06:58:18 +0000 (14:58 +0800)]
feature: add cross-chain input (#61)

* refactor: rename files

* feat: add types.CrossChainInput

* feat: add protocol.CrossChainInput

* wip: init bc.CrossChainInput

* fix: add mainchain output hash

* fix: fix letter cases

* refactor: fix indent

* fix: fix missing value in CrossChainInput

* fix: fix NewCrossChainInput()

* wip: upgrade MapTx()

* refactor: use issue's type indicator for cross-chain input

* revert

* wip: loop Inputs in mapTx()

* wip: add crossIn.SetDestination() in mapTx()

* feat: draft mapTx()

* refactor: remove ruleAA

* feat: add checkValidSrc

* wip: init crossIn in checkValid()

* wip: add vm.Verify for *bc.CrossChainInput

* feat: skip gas for CrossChainInput

* refactor: clean up

* fix: fix protobuf

* fix: fix validate tx

* update (t *TxInput) AssetAmount()

* add (t *TxInput) Amount()

* update

* clean

* wip: types/txinputs.go

* feat: draft types.TxInput

* fix: fix test

* clean

* fix outputID

* init assetDefinition

* add read/write AssetDefinition

* fix the merge issue

4 years agoNodeinfo handshake information modification (#68)
yahtoo [Fri, 17 May 2019 04:19:22 +0000 (12:19 +0800)]
Nodeinfo handshake information modification (#68)

* Nodeinfo handshake information modification

* Add moniker to config file

* Add node info test file

* Del useless code

* opz code format

* opz log print

4 years agoV0.1 votetx input (#67)
wz [Fri, 17 May 2019 02:57:28 +0000 (10:57 +0800)]
V0.1 votetx input (#67)

* add unvote struct

* modify ComputeOutputID

* add uint test

* fix

4 years agoOptimize status message process (#66)
yahtoo [Thu, 16 May 2019 14:15:48 +0000 (22:15 +0800)]
Optimize status message process (#66)

* StatusResponseMessage del GenesisHash

* Del useless broadcastMinedBlock msg

* Add StatusMsg process

* Add new status broadcast

4 years agoinit for remove issue (#63)
Paladz [Thu, 16 May 2019 06:46:15 +0000 (14:46 +0800)]
init for remove issue (#63)

* init for remove issue

* keep remove issue

* delete the issuance

* remove issue related

4 years agoAdd validate votetx (#64)
wz [Thu, 16 May 2019 06:37:07 +0000 (14:37 +0800)]
Add validate votetx (#64)

* Add validate votetx

* delete uint test

* fix review

* recover code

* recover code

* fix

* fix

4 years agobft-dpos (#59)
muscle_boy [Wed, 15 May 2019 15:00:49 +0000 (23:00 +0800)]
bft-dpos (#59)

* bft-dpos

* bug fix

* opt code

* add test case

* opt code

4 years agovotetx output (#62)
wz [Wed, 15 May 2019 04:54:56 +0000 (12:54 +0800)]
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

4 years agoFix discovery msg codec hash error (#60)
yahtoo [Wed, 15 May 2019 03:14:35 +0000 (11:14 +0800)]
Fix discovery msg codec hash error (#60)

* Fix udp discovery packet hash error

* Fix test file error

4 years agofeat: add cross-chain output (#56)
HAOYUatHZ [Tue, 14 May 2019 14:48:30 +0000 (22:48 +0800)]
feat: add cross-chain output (#56)

* 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

* fix

* fix

* fix

* fix

* fix

* fix

* clean

* fix

* fix

* fix

* fix

* fix

* fix wip

* should fix

* figure out

* fix comment

* fix estimate gas

* fixing

* try merkle

* fix merkle test

* fix merkle comp

* fix TestTxOutToUtxos()

* fix TestReadFrom

* minor

* try fix the ci

4 years agoAdd subnet having the same network ID isolation function (#57)
yahtoo [Tue, 14 May 2019 09:19:14 +0000 (17:19 +0800)]
Add subnet having the same network ID isolation function (#57)

* Network isolation main chain and side chain

* Add test cases

* Del unused code

* Uniform variable name

* Opz log

* Generate unique network ID using genesisBlock hash

* Change Bech32HRPSegwit to 'vp'

* Change netID generate method

4 years agoV0.1 pk interface (#58)
Chengcheng Zhang [Mon, 13 May 2019 16:00:20 +0000 (00:00 +0800)]
V0.1 pk interface (#58)

* add XPrvKeyer, XPubKeyer interface

* create bcsp

* add csp

* update interface XPubKeyer

* add gm lib

* update

* delete gm lib

* delete old gm lib

* update config

4 years agoAdd BlockWitness (#54)
wz [Fri, 10 May 2019 02:49:40 +0000 (10:49 +0800)]
Add BlockWitness (#54)

* Add BlockWitness

* modify test and Add BlockWitness for proto

* add unit test

* modify code format

* modify review

* Modify unit test

4 years agoinit delete the pow related (#55)
Paladz [Fri, 10 May 2019 01:04:54 +0000 (09:04 +0800)]
init delete the pow related (#55)

* init delete the pow related

* fix the issue

* fix the ci

* test ci

* remove the nonce and bits

4 years agotest (#52)
Paladz [Thu, 9 May 2019 08:44:36 +0000 (16:44 +0800)]
test (#52)

* test

* edit the ci config

* edit the path issue

4 years agoHulk did something
paladz [Thu, 9 May 2019 06:12:06 +0000 (14:12 +0800)]
Hulk did something

4 years agoThanos did someting
paladz [Thu, 9 May 2019 06:02:32 +0000 (14:02 +0800)]
Thanos did someting