OSDN Git Service

bytom/vapor.git
2 months agoupdate dashboard (#309) v0.3.0
Zhiting Lin [Thu, 18 Jul 2019 02:56:01 +0000 (10:56 +0800)]
update dashboard (#309)

2 months agofix netParams for fedd (#307)
HAOYUatHZ [Wed, 17 Jul 2019 12:45:31 +0000 (20:45 +0800)]
fix netParams for fedd (#307)

* fix network

* update doc

2 months agofix config & update mysql dump (#306)
HAOYUatHZ [Wed, 17 Jul 2019 09:23:01 +0000 (17:23 +0800)]
fix config & update mysql dump (#306)

2 months agoupdate dashboard. (#305)
Zhiting Lin [Wed, 17 Jul 2019 08:49:54 +0000 (16:49 +0800)]
update dashboard. (#305)

2 months agomodify estimate gas (#304)
oysheng [Wed, 17 Jul 2019 08:35:32 +0000 (16:35 +0800)]
modify estimate gas (#304)

* modify estimate gas

* unit test

2 months agoAccount store test (#303)
Chengcheng Zhang [Wed, 17 Jul 2019 07:53:08 +0000 (15:53 +0800)]
Account store test (#303)

* add TestDeleteAccount

* update

* update TestDeleteAccount

* add TestDeleteStandardUTXO

* add TestGetAccountIndex

* update

* add TestGetBip44ContractIndex

* update

* add TestGetCoinbaseArbitrary

* add TestGetContractIndex

* update

* update

* add TestGetMiningAddress

* add TestListAccounts

* add TestListControlPrograms

* add TestListUTXOs

2 months agomodify config (#302)
oysheng [Wed, 17 Jul 2019 06:28:16 +0000 (14:28 +0800)]
modify config (#302)

2 months agodelete first tx vote amount restrict (#301)
oysheng [Wed, 17 Jul 2019 06:01:16 +0000 (14:01 +0800)]
delete first tx vote amount restrict (#301)

2 months agoconsensus should be able to change (#300)
Paladz [Wed, 17 Jul 2019 03:48:12 +0000 (11:48 +0800)]
consensus should be able to change (#300)

2 months agoadd free gas (#295)
oysheng [Wed, 17 Jul 2019 03:15:46 +0000 (11:15 +0800)]
add free gas (#295)

* add free gas

* unit test

* delete checkout nobtm input

* optimise

2 months agoupdate dashboard (#299)
Zhiting Lin [Wed, 17 Jul 2019 03:04:52 +0000 (11:04 +0800)]
update dashboard (#299)

2 months agofix bug (#297)
Paladz [Wed, 17 Jul 2019 01:48:57 +0000 (09:48 +0800)]
fix bug (#297)

2 months agomodify utxo pending number and consensus node vote restrict (#285)
oysheng [Wed, 17 Jul 2019 01:47:22 +0000 (09:47 +0800)]
modify utxo pending number and consensus node vote restrict (#285)

* modify utxo pending number

* add consensus node vote restrict

* fix test

* modify validate vote tx

* modify config

* unit test

* add error

* optimise

* optimise

* optimise

* optimise config

* apply Tx

* delete

* optimise

2 months agoAccount store test (#296)
Chengcheng Zhang [Tue, 16 Jul 2019 11:28:40 +0000 (19:28 +0800)]
Account store test (#296)

* add TestDeleteAccount

* update

* update TestDeleteAccount

* add TestDeleteStandardUTXO

* add TestGetAccountIndex

* update

* add TestGetBip44ContractIndex

* update

* add TestGetCoinbaseArbitrary

* add TestGetContractIndex

* update

2 months agoPrevent resending of received BlockSignatureMsg (#294)
yahtoo [Tue, 16 Jul 2019 10:38:50 +0000 (18:38 +0800)]
Prevent resending of received BlockSignatureMsg (#294)

2 months agosync vote info for reward (#292)
wz [Tue, 16 Jul 2019 07:55:36 +0000 (15:55 +0800)]
sync vote info for reward (#292)

* modify CHARSET

* add

* add sync block

* add sync block

* fix

* fix

* fix review

* modify logic

2 months agoDel BlockSignatureMsg unused Height field (#293)
yahtoo [Tue, 16 Jul 2019 06:34:11 +0000 (14:34 +0800)]
Del BlockSignatureMsg unused Height field (#293)

2 months agofix: use fedConsensusPath to derive for consensus federationNodes (#290)
HAOYUatHZ [Mon, 15 Jul 2019 14:52:41 +0000 (22:52 +0800)]
fix: use fedConsensusPath to derive for consensus federationNodes (#290)

* add fedConsensusPath

* doc: clean up

2 months agorefactor: use derived xpubs for federation (#289) node_path
HAOYUatHZ [Mon, 15 Jul 2019 14:16:13 +0000 (22:16 +0800)]
refactor: use derived xpubs for federation  (#289)

* add fed path

* refactor: rename FedPath

* clean

2 months agoTest save block (#288)
Chengcheng Zhang [Mon, 15 Jul 2019 11:49:48 +0000 (19:49 +0800)]
Test save block (#288)

* add TestSaveBlock

* TestSaveBlockHeader

* update

2 months agofilter out known txs (#280)
apolloww [Mon, 15 Jul 2019 10:58:18 +0000 (18:58 +0800)]
filter out known txs (#280)

* filter out known txs

* move filtering logic into chain level

* skip filtering when restoring tx back to pool

* refactor

2 months agoAdd a regular sync maximum block limit (#287)
yahtoo [Mon, 15 Jul 2019 08:10:01 +0000 (16:10 +0800)]
Add a regular sync maximum block limit (#287)

2 months agoVoter reward (#286)
wz [Mon, 15 Jul 2019 08:08:57 +0000 (16:08 +0800)]
Voter reward (#286)

* rename dir

* add database

* fix

* fix

2 months agorename dir (#283)
wz [Mon, 15 Jul 2019 07:02:06 +0000 (15:02 +0800)]
rename dir (#283)

2 months agochange the ts (#284)
Paladz [Mon, 15 Jul 2019 06:56:38 +0000 (14:56 +0800)]
change the ts (#284)

2 months agoFix fast sync bug when the chain has fork (#282)
yahtoo [Mon, 15 Jul 2019 05:05:01 +0000 (13:05 +0800)]
Fix fast sync bug when the chain has fork (#282)

* Fix fast sync bug when the chain has fork

* Opz code format

* Fix test file err

2 months agoFix sync orphan block system panic (#281)
yahtoo [Mon, 15 Jul 2019 02:08:17 +0000 (10:08 +0800)]
Fix sync orphan block system panic (#281)

when isOrphan==true&&err==nil system panic

2 months agofix chain keepers (#279)
HAOYUatHZ [Sat, 13 Jul 2019 09:48:16 +0000 (17:48 +0800)]
fix chain keepers (#279)

* fix sidechain_keeper initialization

* fix sql schema

* fix(federation): fix readme

2 months agomark tx before validation so it won't be sent to source again (#278)
apolloww [Sat, 13 Jul 2019 07:10:52 +0000 (15:10 +0800)]
mark tx before validation so it won't be sent to source again (#278)

2 months agorename vapord (#277)
Chengcheng Zhang [Sat, 13 Jul 2019 06:43:57 +0000 (14:43 +0800)]
rename vapord (#277)

2 months agoEdit (#275)
Paladz [Sat, 13 Jul 2019 06:30:27 +0000 (14:30 +0800)]
Edit (#275)

* tmp save

* try to fix tx locate issue

* elegant the code

* elegant the code

* edit for code review

2 months agoupdate init (#276)
Chengcheng Zhang [Sat, 13 Jul 2019 02:56:13 +0000 (10:56 +0800)]
update init (#276)

* update init

* update

* update fatal

2 months agotry to fix ban peer bug (#273)
Paladz [Fri, 12 Jul 2019 13:38:00 +0000 (21:38 +0800)]
try to fix ban peer bug (#273)

2 months agoadd xpub (#272)
Chengcheng Zhang [Fri, 12 Jul 2019 10:30:47 +0000 (18:30 +0800)]
add xpub (#272)

* update

* update

* update

2 months agomodify tip (#271)
oysheng [Fri, 12 Jul 2019 09:06:20 +0000 (17:06 +0800)]
modify tip (#271)

2 months agoFix xpub copy error (#270)
yahtoo [Fri, 12 Jul 2019 08:56:31 +0000 (16:56 +0800)]
Fix xpub copy error (#270)

2 months agomodify params (#269)
oysheng [Fri, 12 Jul 2019 07:40:47 +0000 (15:40 +0800)]
modify params (#269)

* modify params

* optimise

2 months agomodify config (#265)
oysheng [Fri, 12 Jul 2019 07:11:51 +0000 (15:11 +0800)]
modify config (#265)

* modify config

* modify bytom mainnet

2 months agoupdate dashboard (#268)
Zhiting Lin [Fri, 12 Jul 2019 07:05:30 +0000 (15:05 +0800)]
update dashboard (#268)

2 months agoFix BlockSignatureMsg unbroadcast problem (#267)
yahtoo [Fri, 12 Jul 2019 07:04:56 +0000 (15:04 +0800)]
Fix BlockSignatureMsg unbroadcast problem (#267)

* Fix BlockSignatureMsg unbroadcast problem

* Fix review bug

2 months agoupdate dashboard (#266)
Zhiting Lin [Fri, 12 Jul 2019 06:44:21 +0000 (14:44 +0800)]
update dashboard (#266)

2 months agofix bug (#264)
Chengcheng Zhang [Fri, 12 Jul 2019 03:02:33 +0000 (11:02 +0800)]
fix bug (#264)

* fix bug

* update

2 months agofix bug (#260)
wz [Thu, 11 Jul 2019 10:28:10 +0000 (18:28 +0800)]
fix  bug (#260)

* fix  bug

* fix bug

2 months agomodify timestamp (#262)
oysheng [Thu, 11 Jul 2019 10:26:55 +0000 (18:26 +0800)]
modify timestamp (#262)

2 months agomodify sort for coinbase reward (#261)
oysheng [Thu, 11 Jul 2019 09:03:17 +0000 (17:03 +0800)]
modify sort for coinbase reward (#261)

2 months agoupdate log (#259)
Chengcheng Zhang [Thu, 11 Jul 2019 08:51:09 +0000 (16:51 +0800)]
update log (#259)

* update log

* update

2 months agoDel signature from cache when added to the block (#258)
yahtoo [Thu, 11 Jul 2019 06:39:21 +0000 (14:39 +0800)]
Del signature from cache when added to the block (#258)

2 months agoadd parallel fast sync support (#238)
yahtoo [Thu, 11 Jul 2019 06:04:09 +0000 (14:04 +0800)]
add parallel fast sync support (#238)

* Add parallel require blocks

* Add fast sync block storage and process

* add fetch blocks timeout process

* Fix oops bug

* add timeoutQueue func

* Fix review bug

* Opz code format

* modify parallelFetchHeaders function

* modify select sync peer logic

* Del unused code

* add blocksTasks struct

* Modify block parallel download mode

* Opz code format

* Fix test case error

* opz code format

* Add fast sync peer err handle

* Fix test case err

* Fix review bugs

* Fix review bugs

* Fix review bugs

* Add test file

* Fix review bug

* Fix fetch headers stopHeader lost err

* Fix locate headers bug

* Opz code format

* Fix review bug

2 months agoWallet store interface (#217)
Chengcheng Zhang [Thu, 11 Jul 2019 06:02:58 +0000 (14:02 +0800)]
Wallet store interface (#217)

* update

* sort wallet store functions

* update

* update

* update

* remove DeleteAccountByAlias

* remove DeleteAccountUTXOs

* update

* update

* update

* remove deleteAccountControlPrograms

* remove DeleteBip44ContractIndex DeleteContractIndex DeleteControlProgram

* rename GetAccountByID to GetAccount

* update GetAsset

* move TestReserve to account

* move TestReserveParticular to account

* move TestFindUtxos to account

* update

* delete utxo_keeper_test

* update

* update

* move TestReserveBtmUtxoChain to account

* update

* update

* update

* remove mock/UTXO.go

* update ListTransactions

* update

* update

* update AccountStorer

* update SetAccountIndex

* update

* update

* update

* update DeleteAccountUTXOs

* update DeleteAccount

* update

* update ListUTXOs

* update

* update

* update getAccountFromACP

* update Restore

* update Restore

* update Restore

* update

* update

* update GetCoinbaseCtrlProgram

* update Create

* update Create

* update SaveAccount

* update UpdateAccountAlias

* update SetAccountIndex

* update FindByAlias

* update WalletStore

* update

* remove GetAccount

* update

* udpate

* update

* add SetStandardUTXO

* remove SetStandardUTXO in walletstore

* update

* remove DeleteStandardUTXO

* update

* update

* update

* update

* update

* add mockAccountStore in wallet_test

* update CalcGlobalTxIndex in wallet_test

* add mockWalletStore in wallet_test

* update TestWalletVersion

* move TestEncodeDecodeGlobalTxIndex

* add test/wallet_test.go

* update

* update

* update TestXPubsRecoveryLock

* update

* update TestExtendScanAddresses

* update TestRecoveryFromXPubs

* add mock wallet store

* update

* add mock account store

* update TestRecoveryByRescanAccount

* update

* update recovery_test.go

* update TestWalletUnconfirmedTxs

* update TestGetAccountUtxos

* update

* update

* update

* update

* update

* update

* update id

* update

* update

* update

* update

* update TestGetAccountUtxos

* update

* update

* update

* update

* update

* update

* update

* update

* update

* add MockAccountStore

* remove mock

* remove mock

* update

* remove test mock

* comment some test functions

* update SetWalletInfo

* update

* update

* update loadWalletInfo

* update

* update

* rename RecoveryState

* update

* update commitStatusInfo

* update

* update

* update

* remove recoveryKey

* update

* update

* update

* rename calcGlobalTxIndexKey to CalcGlobalTxIndexKey

* update

* update

* update TestWalletUpdate

* remove comments

* update wallet_test

* update LoadWalletInfo

* rename w.status

* update TestRescanWallet

* add TestMemPoolTxQueryLoop

* update TestMemPoolTxQueryLoop

* update

* update

* fix TestFilterAccountUtxo

* update

* update

* refine code

* remove TestRescanWallet

* add account store

* comment test

* update TestFilterAccountUtxo

* fix w.AccountMgr.GetControlProgram

* remove GetControlProgram

* remove comment

* update

* update

* update

* update

* rename accountDB to db

* rename walletDB to db

* update

* update

* update

* update

* update

* update

* update

* update

* update deleteAccountUTXOs

* update

* add deleteAccountControlPrograms

* update ListAccountUTXOs

* update GetAccountByProgram

* update

* update

* update

* update

* update

* rm key

* update utxo_keeper

* update DeleteTransactions

* update Bip44ContractIndexKey

* update dbm

* update TestFilterAccountUtxo

* update

* add accountstore

* update TestFilterAccountUtxo

* updata TestFilterAccountUtxo

* move db account store prefix

* move db wallet store prefix

* add InitStore

* update

* rename CommitStore

* add InitStore

* rename CommitStore

* fix bug

* update

* update

* update

* update

* update

* update

* update

* update

* move accountAliasKey

* update

* rename InitStore to InitBatch

* rename CommitStore to CommitBatch

* update

* update

* update

* update

* update

* update

* update

* fix TestWalletUpdate

* fix bugs

* remove loop

* fix bug

* update

* update

* update Restore

* update Restore

* update saveExternalAssetDefinition

* move ErrAccntTxIDNotFound

* update GetCoinbaseCtrlProgram

* update getExternalDefinition

2 months agomodify general config (#257)
oysheng [Thu, 11 Jul 2019 06:01:59 +0000 (14:01 +0800)]
modify general config (#257)

* modify general config

* move code

* modify

* optimise

2 months agofix ban node failed (#256)
yahtoo [Wed, 10 Jul 2019 12:02:17 +0000 (20:02 +0800)]
fix ban node failed (#256)

2 months agoedit code while reviewing the code (#255)
Paladz [Wed, 10 Jul 2019 07:48:10 +0000 (15:48 +0800)]
edit code while reviewing the code (#255)

* edit code while reviewing the code

* change the if err statement

* clean the db part code

* delete the unused reqid code

2 months agorestore Tx back to Tx pool when chain is reorganized (#254)
apolloww [Tue, 9 Jul 2019 06:24:57 +0000 (14:24 +0800)]
restore Tx back to Tx pool when chain is reorganized (#254)

* restore Tx back to Tx pool when chain is reorganized

* print log if restoring tx fails

2 months agoedit code while reviw (#253)
Paladz [Tue, 9 Jul 2019 02:20:55 +0000 (10:20 +0800)]
edit code while reviw (#253)

* edit code while reviw

* edit the code format

2 months agomodify timestamp (#252)
oysheng [Mon, 8 Jul 2019 08:14:37 +0000 (16:14 +0800)]
modify timestamp (#252)

2 months agofix bug (#251)
wz [Mon, 8 Jul 2019 08:00:16 +0000 (16:00 +0800)]
fix bug (#251)

2 months agorefactor: change asset.Definition encoding (#250)
HAOYUatHZ [Mon, 8 Jul 2019 07:11:37 +0000 (15:11 +0800)]
refactor: change asset.Definition encoding (#250)

2 months agomodify seed (#249)
oysheng [Mon, 8 Jul 2019 06:47:41 +0000 (14:47 +0800)]
modify seed (#249)

2 months agofilter change output (#248)
HAOYUatHZ [Mon, 8 Jul 2019 06:44:31 +0000 (14:44 +0800)]
filter change output (#248)

2 months agokeep last irreversible block on the main chain (#245)
apolloww [Mon, 8 Jul 2019 05:42:55 +0000 (13:42 +0800)]
keep last irreversible block on the main chain (#245)

* keep last irreversible block on the main chain

Only update the LIB pointer when newly irreversible block is on the main
chain. Emit warning otherwise.

* save updated block header

2 months agoadd unit test and modify file name (#247)
oysheng [Mon, 8 Jul 2019 03:12:56 +0000 (11:12 +0800)]
add unit test and modify file name (#247)

* add unit test

* modify file name

2 months agoSmall edit (#246)
Paladz [Mon, 8 Jul 2019 02:54:24 +0000 (10:54 +0800)]
Small edit (#246)

* replace the useless id generate

* remove unused code

2 months agoaggregate coinbase rewards (#239)
oysheng [Sat, 6 Jul 2019 07:41:01 +0000 (15:41 +0800)]
aggregate coinbase rewards (#239)

* modify struct to consensusResult

* rename file name

* extract common funtion

* modify name

* modify coinbase tx

* optimise

* aggregate amount for same program

* fix coinbase calculate

* delete â„¹rrelevant test code

* modify get asset

* modify

* modify variable name

* optimise detachBlock for consensusResult

* optimise

* optimise

* restruct

* modify test

* filter zero amount output

* filter zero amount for protocol

* modify name

* move

* rename

* modify unit test

* add test

* optimise

* optimise code

* optimise

* move calculate txfee

* optimise code

* optimise

* restruct

* optimise

* optimise

* modify calculate tx fee

* optimise

* optimise

* optimise

* optimise

* optimise

* optimise

2 months agoadd compression (#240)
wz [Sat, 6 Jul 2019 07:07:43 +0000 (15:07 +0800)]
add compression (#240)

* add compression

* fix review

* remove code

* fix

2 months agoupdate dashboard with account option. (#243)
Zhiting Lin [Fri, 5 Jul 2019 06:53:31 +0000 (14:53 +0800)]
update dashboard with account option. (#243)

2 months agofix(bc): fix TxInput.SpentOutputID() (#242)
HAOYUatHZ [Fri, 5 Jul 2019 03:03:30 +0000 (11:03 +0800)]
fix(bc): fix TxInput.SpentOutputID()  (#242)

* fix input.SpentOutputID

* refine code

2 months agoSmall edit (#241)
Paladz [Thu, 4 Jul 2019 05:44:32 +0000 (13:44 +0800)]
Small edit (#241)

* check the accesstoken folder

* remove unused testutil/expect.go

* remove testutil/parameter.go

* small changes

* hash without vaule

* remove the duplicate value in crosschain input

* delete unused file

2 months agoTx validate mining (#237) distribution_rewards
wz [Tue, 2 Jul 2019 11:53:58 +0000 (19:53 +0800)]
Tx validate mining (#237)

* add func

* tx validate for minging

* fix review

2 months agofix paging (#235)
wz [Tue, 2 Jul 2019 08:29:30 +0000 (16:29 +0800)]
fix paging (#235)

* fix paging

* fix test

* fix

2 months agoPaging (#234) paging_utxo
wz [Mon, 1 Jul 2019 07:52:48 +0000 (15:52 +0800)]
Paging (#234)

* add paging

* fix review

* fix review

* remove space

* fix review

* add AccountAlias

* fix test

2 months agorefatcor(feaderation): use P2WSHProgram for federation program on sidechain (#233)
HAOYUatHZ [Sat, 29 Jun 2019 01:44:12 +0000 (09:44 +0800)]
refatcor(feaderation): use P2WSHProgram for federation program on sidechain (#233)

* fix

* rename

* fix

2 months agoupdate dashboard (#232) v0.2.0
Zhiting Lin [Fri, 28 Jun 2019 06:21:12 +0000 (14:21 +0800)]
update dashboard (#232)

2 months agofix array out of index range (#231)
oysheng [Fri, 28 Jun 2019 04:29:05 +0000 (12:29 +0800)]
fix array out of index range (#231)

2 months agofix lru issue (#230)
Paladz [Thu, 27 Jun 2019 12:32:56 +0000 (20:32 +0800)]
fix lru issue (#230)

2 months agofix asset foreign key (#229)
HAOYUatHZ [Thu, 27 Jun 2019 08:16:59 +0000 (16:16 +0800)]
fix asset foreign key (#229)

2 months agoUpdate README.md
langyu [Thu, 27 Jun 2019 08:09:26 +0000 (16:09 +0800)]
Update README.md

Add default data path

2 months agofeat(federation): add /get-fed-info api (#228)
HAOYUatHZ [Thu, 27 Jun 2019 07:59:31 +0000 (15:59 +0800)]
feat(federation): add /get-fed-info api  (#228)

* fix

* add default port

* init getFedInfo

* init FedInfo struct

* clean up

* draft fed info

* clean up

* cealn

* cealn

* fix

2 months agomodify seed and timestamp (#227)
oysheng [Thu, 27 Jun 2019 02:13:16 +0000 (10:13 +0800)]
modify seed and timestamp (#227)

2 months agospeed up valiate tx (#226)
Paladz [Wed, 26 Jun 2019 12:46:51 +0000 (20:46 +0800)]
speed up valiate tx (#226)

2 months agoadd address filter (#225)
HAOYUatHZ [Wed, 26 Jun 2019 11:04:33 +0000 (19:04 +0800)]
add address filter (#225)

2 months agofeat(federation): add address in /list-txs (#224)
HAOYUatHZ [Wed, 26 Jun 2019 10:19:15 +0000 (18:19 +0800)]
feat(federation): add address in /list-txs (#224)

* add addresses

* add add add

* main listener address

* sidechain listener address

* update docs

2 months agofeat(federation): add address and timestamp (#223)
HAOYUatHZ [Wed, 26 Jun 2019 08:26:17 +0000 (16:26 +0800)]
feat(federation): add address and timestamp (#223)

* update req & resp

* init timestamp

* fix timestamp

* fix

* add asset

* init from_address to_address

2 months agodoc(federation): add /list-crosschain-txs docs (#222)
HAOYUatHZ [Wed, 26 Jun 2019 06:57:31 +0000 (14:57 +0800)]
doc(federation): add /list-crosschain-txs docs (#222)

* init

* add fed list-txs doc

* update

* refactor reponse

* update docs

2 months agorefactor(federation): change filter in list-txs (#221)
HAOYUatHZ [Wed, 26 Jun 2019 02:03:21 +0000 (10:03 +0800)]
refactor(federation): change filter in list-txs (#221)

2 months ago get BlockNode from database (#188)
oysheng [Tue, 25 Jun 2019 11:58:37 +0000 (19:58 +0800)]
 get BlockNode from database (#188)

* modify BlockNode to database

* modify newBlockNode

* optimise LoadBlockIndex

* optimise hash

* restruct blockIndex

* delete redundancy function

* remove blockIndex BlockExist function and add Remove cached blockNode

* modify function name

* modify blockwitness index

* optimise

* optimise chain best node

* modify dir

* optimise

* delete blockindex

* optimise style

* remove argument

* modify name

* modify get blockwitness func

* add getBestNode

* optimise blockHashes

* remove BlockNode

* optimise struct

* optimise

* optimise protocol

* optimise saveChainStatus

* optimise

* optimise

* remove consensusNodeManager

* modify node to blockheader

* modify node name

* remove redundancy getBlocker

* modify node to blockHeader

* add lock

* add deep copy

* fix

* modify function name

* modify order

* optimise init getBlockHashes

* optimise

* modify database test

* fix validation test

* fix txpool test

* fix utxo_view test

* delete protocol block test

* optimise name and position

* optimise

* delete cond

* modify Name

* abstract common function

* optimise

* add unit test

* optimise unit test

* delete code

* save main chain hash by height

* save main chain hashes

* fix error

* optimise

* optimise

* optimsie

* optimise

* optimise

2 months agofeat(warder): add warder backbone (#181)
HAOYUatHZ [Tue, 25 Jun 2019 11:50:41 +0000 (19:50 +0800)]
feat(warder): add warder backbone (#181)

* init warder

* init

* add

* gogogo

* add

* dododo

* gogogo

* add validateTx

* add

* build tx

* update

* check

* dododod

* fk

aaaaaaaaaa

* update check

* add colect_minutes

* fix

* init collect

* what can i say

* find

* find

* update

* ???

* zhen xiang

* clean

* fix

* dodo

* clean

* update

* fix

* fix typo

* clean

* update

* add service.Warder

* hostPort

* path

* fix

* dododo

* add add add

* add

* add

* update

* add

* update

* update

* update

* fix https://github.com/Bytom/vapor/pull/181#discussion_r294070592

* fix https://github.com/Bytom/vapor/pull/181#discussion_r294070868

* remove blank line

* fix logic for https://github.com/Bytom/vapor/pull/181#discussion_r294070592

* xpr

* dododo

* decode fedprog

* add todos

* sort

* sep

* checked

* temp

* clean

* ???

* rename

* clean

* add time_range

* pause

* pause again

* can compile

* do

* use https://github.com/Bytom/vapor/pull/181#pullrequestreview-250219072 3

* add input

* parse

* add fedProg

* add

* fix

* di

* clean

* fix

* clean

* add todo

* what can i sat

* clean

* combine

* fix

* renew

* add type SigningInstruction

* comment out useless

* revert

* rename to assetStore

* update

* dododo

* fj

* add output

* type

* init

* update

* emm

* dododo

* update

* clean up

* addInputWitness

* init

* fix sidechainKeeper.getCrossChainReqs()

* opt

* opt

* rename

* clean

* clean

* fix

* add

* fix

* clean

* renew

* merge

* clean

* fix https://github.com/Bytom/vapor/pull/181#discussion_r295148126

* add todo

* rename

* rename GetByAssetID

* fmtKey

* fix cache query

* clean

* fix no valid transaction

* fix

* rename

* fix

* fix

* revert

* clean

* fix

* fix

* fix collect

* clean

* add tryProcess

* pause

* init

* draft

* fix

* draft

* more

* sign

* rearrange

* clean

* clean

* what can i say

* redesign

* fix getSignData

* fix getSigns

* init finalizeTx

* add labels

* add  getInputsCnt

* ???

* clean

* wtf

* good

* clean

* clean

* clean

* good

* fix

* clean

* clean

* miao

* update

* clean

* init api.NewServer

* init

* minor

* comment out synchron first

* rename

* init

* add venfor

* clean up

* add listener

* add middleware

* add

* init handlerMiddleware

* add

* fix typo

* update

* update

* clean

* update

* clean

* updare

* add

* add todos

* add

* do

* update

* add

* update

* update

* clean up

* clean

* clean

* temp clean

* clean up

* clean

* clean

* clean

* clean up

* clean

* clean

* fix

* clean

* combine

* clean

* add github.com/mattn/go-isatty

* add github.com/ugorji/go/codec

* add gopkg.in/go-playground/validator.v8

* clean

* temp

* clean

* init

* init

* add minor

* add json

* ???

* temp

* clean

* fix json

* fix json

* clean

* add

* add

* add

* add

* clean

* clean

* clean

* move

* fix https://github.com/Bytom/vapor/pull/181#discussion_r297058765

* fix

2 months agoadd fast sync func (#204)
yahtoo [Tue, 25 Jun 2019 10:30:38 +0000 (18:30 +0800)]
add fast sync func (#204)

* Modify fast sync function

* Fix GetHeadersMessage error

* Fix skeleton init error

* Fix fetchHeaders error

* Add fetch date finish check

* Fix FetchBodiesTask error

* Fix fetchBodies bug

* Add multi-peer fetch support

* Fix requireHeaders bug

* add lit fast sync func

* Fix fetchBlocks bug

* opz code format

* del test file

* opz code

* Add test case

* change to singe peer fast sync

* Fix bug

* Add peer exception handle

* del unused code

* Add test case

* Fix review bug

* Fix locate headers error

* Fix test file error

* Add irreversible block fast sync

* Fix test err

* Fix review bug

2 months agofix dockerfile (#220)
Chengcheng Zhang [Mon, 24 Jun 2019 06:50:09 +0000 (14:50 +0800)]
fix dockerfile (#220)

2 months agoadd error code for veto (#219)
wz [Mon, 24 Jun 2019 06:43:32 +0000 (14:43 +0800)]
add error code for veto (#219)

* add error code

* fix

2 months agomock crosschain tx (#218)
Paladz [Mon, 24 Jun 2019 05:59:19 +0000 (13:59 +0800)]
mock crosschain tx (#218)

3 months agovapord docker: add missing options to deploy script (#216) coinbase_reward
apolloww [Fri, 21 Jun 2019 04:36:18 +0000 (12:36 +0800)]
vapord docker: add missing options to deploy script (#216)

3 months agodockerize vapord (#214) fix_lru_vote
apolloww [Thu, 20 Jun 2019 12:08:57 +0000 (20:08 +0800)]
dockerize vapord (#214)

3 months agoTest crossin (#213) test_vote
wz [Thu, 20 Jun 2019 08:48:58 +0000 (16:48 +0800)]
Test crossin (#213)

* fix crossin

* fix review

3 months agoMerge pull request #212 from Bytom/Makefile
Paladz [Thu, 20 Jun 2019 07:21:05 +0000 (15:21 +0800)]
Merge pull request #212 from Bytom/Makefile

Change Makefile and directory for vapor

3 months agoupdate readme
Chengcheng Zhang [Thu, 20 Jun 2019 07:12:32 +0000 (15:12 +0800)]
update readme

3 months agoupdate from master Makefile
Chengcheng Zhang [Thu, 20 Jun 2019 07:08:12 +0000 (15:08 +0800)]
update from master

3 months agoMerge branch 'master' into Makefile
Chengcheng Zhang [Thu, 20 Jun 2019 07:06:51 +0000 (15:06 +0800)]
Merge branch 'master' into Makefile

3 months agoChange Makefile and directory for vapor
Yahtoo Ma [Thu, 20 Jun 2019 06:46:35 +0000 (14:46 +0800)]
Change Makefile and directory for vapor

3 months agoMerge pull request #209 from Bytom/readme
Paladz [Thu, 20 Jun 2019 06:27:43 +0000 (14:27 +0800)]
Merge pull request #209 from Bytom/readme

update readme

3 months agoupdate
Chengcheng Zhang [Thu, 20 Jun 2019 06:25:30 +0000 (14:25 +0800)]
update