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
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
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
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
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
init for remove issue (#63) * init for remove issue * keep remove issue * delete the issuance * remove issue related