OSDN Git Service

bytom/bytom.git
6 years agorefactor handler related tests (#464)
Yongfeng LI [Thu, 22 Mar 2018 08:33:49 +0000 (16:33 +0800)]
refactor handler related tests (#464)

* refactor handler related tests

* fix imports

6 years agoremove serveHTTP and mux from BlockchainReactor (#463)
Yongfeng LI [Thu, 22 Mar 2018 07:57:06 +0000 (15:57 +0800)]
remove serveHTTP and mux from BlockchainReactor (#463)

* remove serveHTTP of BlockchainReactor

* remove mux from BlockchainReactor

6 years agolist-addresses response add account_alias (#462)
oysheng [Thu, 22 Mar 2018 07:50:38 +0000 (15:50 +0800)]
list-addresses response add account_alias (#462)

* git# This is a combination of 18 commits.
fix json name for submit transaction

remove useless code in blockchain/reactor.go (#441)

add interface get-transaction (#439)

* standard transaction reserve utxo filter out contract utxo

* add interface get-transaction
motify response json name

* update dashboard

Block json (#442)

* init version of get-block api

* edit for small details

* fix for golint

init push for add newBlockCh for p2p (#443)

init push for validate-address API (#444)

init push for list address (#445)

fix transaction API response json format and bytomcli API (#446)

* standard transaction reserve utxo filter out contract utxo

* add interface get-transaction
motify response json name

* modify json name for api

* fix transaction API response json format

* bytomcli add get-block

* retired xprv

modify get-block-count API (#447)

* standard transaction reserve utxo filter out contract utxo

* add interface get-transaction
motify response json name

* modify json name for api

* fix transaction API response json format

* bytomcli add get-block

* retired xprv

* modify get-block-count

remove accounts and assets from BlockchainReactor (#448)

* remove accounts field in BlockchainReactor

* remove assets field in BlockchainReactor

put hsm from BlockchainReactor to Wallet (#451)

put token management from BlockchainReactor to Wallet (#452)

init push for submit-tx (#450)

modify get-transaction block_time types (#449)

* standard transaction reserve utxo filter out contract utxo

* add interface get-transaction
motify response json name

* modify json name for api

* fix transaction API response json format

* bytomcli add get-block

* retired xprv

* modify get-block-count

* modify block_time types
fix golint suggest

bytomcli add validate-address and list-addresses

edit the create-address api (#453)

* edit the create-address api

* update dashboard

add GetAccountBalances to wallet (#454)

* add GetAccountBalances to wallet

* fix import order

 bytomcli add validate-address and list-addresses  (#455)

* fix json name for submit transaction

* bytomcli add validate-address and list-addresses

* add reset-key-password

* list-addresses response add account_alias
modify bytomcli create-account-receiver

6 years ago refactor node server (#460)
Yongfeng LI [Thu, 22 Mar 2018 07:12:22 +0000 (15:12 +0800)]
 refactor node server (#460)

* remove NewNodeDefault

* refactor node start server

6 years agomodify reset-key-password api (#459)
oysheng [Thu, 22 Mar 2018 07:04:37 +0000 (15:04 +0800)]
modify reset-key-password api (#459)

* git# This is a combination of 18 commits.
fix json name for submit transaction

remove useless code in blockchain/reactor.go (#441)

add interface get-transaction (#439)

* standard transaction reserve utxo filter out contract utxo

* add interface get-transaction
motify response json name

* update dashboard

Block json (#442)

* init version of get-block api

* edit for small details

* fix for golint

init push for add newBlockCh for p2p (#443)

init push for validate-address API (#444)

init push for list address (#445)

fix transaction API response json format and bytomcli API (#446)

* standard transaction reserve utxo filter out contract utxo

* add interface get-transaction
motify response json name

* modify json name for api

* fix transaction API response json format

* bytomcli add get-block

* retired xprv

modify get-block-count API (#447)

* standard transaction reserve utxo filter out contract utxo

* add interface get-transaction
motify response json name

* modify json name for api

* fix transaction API response json format

* bytomcli add get-block

* retired xprv

* modify get-block-count

remove accounts and assets from BlockchainReactor (#448)

* remove accounts field in BlockchainReactor

* remove assets field in BlockchainReactor

put hsm from BlockchainReactor to Wallet (#451)

put token management from BlockchainReactor to Wallet (#452)

init push for submit-tx (#450)

modify get-transaction block_time types (#449)

* standard transaction reserve utxo filter out contract utxo

* add interface get-transaction
motify response json name

* modify json name for api

* fix transaction API response json format

* bytomcli add get-block

* retired xprv

* modify get-block-count

* modify block_time types
fix golint suggest

bytomcli add validate-address and list-addresses

edit the create-address api (#453)

* edit the create-address api

* update dashboard

add GetAccountBalances to wallet (#454)

* add GetAccountBalances to wallet

* fix import order

 bytomcli add validate-address and list-addresses  (#455)

* fix json name for submit transaction

* bytomcli add validate-address and list-addresses

* add reset-key-password

6 years agomake test build failed (#457)
WangYifu [Thu, 22 Mar 2018 05:43:45 +0000 (13:43 +0800)]
make test build failed (#457)

6 years agobugfix: disable wallet panic (#456)
WangYifu [Thu, 22 Mar 2018 05:41:14 +0000 (13:41 +0800)]
bugfix: disable wallet panic (#456)

6 years ago bytomcli add validate-address and list-addresses (#455)
oysheng [Thu, 22 Mar 2018 02:58:38 +0000 (10:58 +0800)]
 bytomcli add validate-address and list-addresses  (#455)

* fix json name for submit transaction

* bytomcli add validate-address and list-addresses

6 years agoadd GetAccountBalances to wallet (#454)
Yongfeng LI [Wed, 21 Mar 2018 14:11:14 +0000 (22:11 +0800)]
add GetAccountBalances to wallet (#454)

* add GetAccountBalances to wallet

* fix import order

6 years agoedit the create-address api (#453)
Paladz [Wed, 21 Mar 2018 14:06:29 +0000 (22:06 +0800)]
edit the create-address api (#453)

* edit the create-address api

* update dashboard

6 years agomodify get-transaction block_time types (#449)
oysheng [Wed, 21 Mar 2018 09:50:15 +0000 (17:50 +0800)]
modify get-transaction block_time types (#449)

* standard transaction reserve utxo filter out contract utxo

* add interface get-transaction
motify response json name

* modify json name for api

* fix transaction API response json format

* bytomcli add get-block

* retired xprv

* modify get-block-count

* modify block_time types
fix golint suggest

6 years agoinit push for submit-tx (#450)
Paladz [Wed, 21 Mar 2018 09:34:31 +0000 (17:34 +0800)]
init push for submit-tx (#450)

6 years agoput token management from BlockchainReactor to Wallet (#452)
Yongfeng LI [Wed, 21 Mar 2018 08:41:47 +0000 (16:41 +0800)]
put token management from BlockchainReactor to Wallet (#452)

6 years agoput hsm from BlockchainReactor to Wallet (#451)
Yongfeng LI [Wed, 21 Mar 2018 08:21:20 +0000 (16:21 +0800)]
put hsm from BlockchainReactor to Wallet (#451)

6 years agoremove accounts and assets from BlockchainReactor (#448)
Yongfeng LI [Wed, 21 Mar 2018 07:17:01 +0000 (15:17 +0800)]
remove accounts and assets from BlockchainReactor (#448)

* remove accounts field in BlockchainReactor

* remove assets field in BlockchainReactor

6 years agomodify get-block-count API (#447)
oysheng [Wed, 21 Mar 2018 06:46:15 +0000 (14:46 +0800)]
modify get-block-count API (#447)

* standard transaction reserve utxo filter out contract utxo

* add interface get-transaction
motify response json name

* modify json name for api

* fix transaction API response json format

* bytomcli add get-block

* retired xprv

* modify get-block-count

6 years agofix transaction API response json format and bytomcli API (#446)
oysheng [Wed, 21 Mar 2018 06:05:57 +0000 (14:05 +0800)]
fix transaction API response json format and bytomcli API (#446)

* standard transaction reserve utxo filter out contract utxo

* add interface get-transaction
motify response json name

* modify json name for api

* fix transaction API response json format

* bytomcli add get-block

* retired xprv

6 years agoinit push for list address (#445)
Paladz [Wed, 21 Mar 2018 04:39:59 +0000 (12:39 +0800)]
init push for list address (#445)

6 years agoinit push for validate-address API (#444)
Paladz [Wed, 21 Mar 2018 02:19:42 +0000 (10:19 +0800)]
init push for validate-address API (#444)

6 years agoinit push for add newBlockCh for p2p (#443)
Paladz [Wed, 21 Mar 2018 02:01:18 +0000 (10:01 +0800)]
init push for add newBlockCh for p2p (#443)

6 years agoBlock json (#442)
Paladz [Tue, 20 Mar 2018 08:11:35 +0000 (16:11 +0800)]
Block json (#442)

* init version of get-block api

* edit for small details

* fix for golint

6 years agoadd interface get-transaction (#439)
oysheng [Tue, 20 Mar 2018 03:04:52 +0000 (11:04 +0800)]
add interface get-transaction (#439)

* standard transaction reserve utxo filter out contract utxo

* add interface get-transaction
motify response json name

* update dashboard

6 years agoremove useless code in blockchain/reactor.go (#441)
Yongfeng LI [Tue, 20 Mar 2018 02:10:55 +0000 (10:10 +0800)]
remove useless code in blockchain/reactor.go (#441)

6 years agosimplify singers#Create (#438)
Yongfeng LI [Mon, 19 Mar 2018 06:16:23 +0000 (14:16 +0800)]
simplify singers#Create (#438)

6 years agoreturn AnnotatedAccount for list-accounts api (#437)
Yongfeng LI [Sat, 17 Mar 2018 09:53:34 +0000 (17:53 +0800)]
return AnnotatedAccount for list-accounts api (#437)

6 years agoignore File field when marshal XPub (#436)
Yongfeng LI [Sat, 17 Mar 2018 07:50:38 +0000 (15:50 +0800)]
ignore File field when marshal XPub (#436)

6 years agoRepalce tp with mp (#434)
Blockmeta-区块元 [Sat, 17 Mar 2018 07:23:10 +0000 (15:23 +0800)]
Repalce tp with mp (#434)

Standardize the naming rule

6 years agoremove Signer#Find (#435)
Yongfeng LI [Sat, 17 Mar 2018 07:17:56 +0000 (15:17 +0800)]
remove Signer#Find (#435)

6 years agoRename legacy (#433)
Yongfeng LI [Fri, 16 Mar 2018 07:30:41 +0000 (15:30 +0800)]
Rename legacy (#433)

* remove external useless types

* rename legacy package to types

6 years agorename create-account-address command (#432)
Yongfeng LI [Fri, 16 Mar 2018 06:19:17 +0000 (14:19 +0800)]
rename create-account-address command (#432)

6 years agoremove InitialBlockHash in Asset (#431)
Yongfeng LI [Fri, 16 Mar 2018 05:58:31 +0000 (13:58 +0800)]
remove InitialBlockHash in Asset (#431)

* remove InitialBlockHash in Asset

* remove InitialBlockId of AssetDefinition

6 years agoset default password to default account (#430)
Yongfeng LI [Fri, 16 Mar 2018 02:41:17 +0000 (10:41 +0800)]
set default password to default account (#430)

6 years agoremove some useless fields in node struct (#429)
Yongfeng LI [Fri, 16 Mar 2018 01:41:21 +0000 (09:41 +0800)]
remove some useless fields in node struct (#429)

6 years agocreate key and account in bytomd init (#425)
Yongfeng LI [Thu, 15 Mar 2018 11:00:55 +0000 (19:00 +0800)]
create key and account in bytomd init (#425)

* create key and account in bytomd init

* init key and account when launch node

* refactor init account process

* fix init or recover account process

* remove useless accounts check

6 years agoremove RefDataHash in SpendCommitment and UTXO (#428)
Yongfeng LI [Thu, 15 Mar 2018 08:21:21 +0000 (16:21 +0800)]
remove RefDataHash in SpendCommitment and UTXO (#428)

* remove RefDataHash in SpendCommitment

* remove RefDataHash in UTXO

* remove RefDataHash in annotatedUTXO

6 years agorename create-account-address to create-account-receiver (#426)
Yongfeng LI [Thu, 15 Mar 2018 07:30:16 +0000 (15:30 +0800)]
rename create-account-address to create-account-receiver (#426)

* rename create-account-address to create-account-receiver

* update dashboard

6 years agodelete unnecessary log (#424)
oysheng [Wed, 14 Mar 2018 07:58:39 +0000 (15:58 +0800)]
delete unnecessary log (#424)

* standard transaction reserve utxo filter out contract utxo

* distinguish StandardUTXO and ContractUTXO
modfiy spendUTXOAction into no account, the contract utxo is not need to sign
wallet add contract utxo db
adjust function parameter format: the end of parameter is error

* delete ExtContractTag because contract utxo is stored in ContractUTXO

* spendUTXOAction add situation when account is empty
prevoutDBKeys delete return value
filterAccountTxs filter contract transaction to reduce unrelated transaction

* fix golint for blockchain/account/reserve.go

* optimise the import

* adjust format for golint

* adjust format

* add the function illustration

* delete unnecessary log

6 years agoRemove reference data in TxInput & TxOutput (#420)
Yongfeng LI [Wed, 14 Mar 2018 07:10:17 +0000 (15:10 +0800)]
Remove reference data in TxInput & TxOutput (#420)

* remove ReferenceData in spendAction

* remove referenceData in controlAddressAction

* remove ReferenceData in controlReceiverAction and controlProgramAction

* remove ReferenceData in issueAction

* remove ReferenceData in spendUTXOAction and retireAction

* remove ReferenceData in TxInput

* fix typo

* fix validation_test

* remove ReferenceData in TxOutput

* remove more reference data

* remove RefDataHash in rawOutput

* delete the txinput/output vm level op

6 years agosimplify next account index in account manager (#423)
Yongfeng LI [Wed, 14 Mar 2018 02:59:03 +0000 (10:59 +0800)]
simplify next account index in account manager (#423)

6 years agoHash static len (#422)
Paladz [Tue, 13 Mar 2018 09:10:32 +0000 (17:10 +0800)]
Hash static len (#422)

* edit hash uint64 method

* edit unit test

6 years agoadjust format for golint (#419)
oysheng [Tue, 13 Mar 2018 06:06:23 +0000 (14:06 +0800)]
adjust format for golint  (#419)

* standard transaction reserve utxo filter out contract utxo

* distinguish StandardUTXO and ContractUTXO
modfiy spendUTXOAction into no account, the contract utxo is not need to sign
wallet add contract utxo db
adjust function parameter format: the end of parameter is error

* delete ExtContractTag because contract utxo is stored in ContractUTXO

* spendUTXOAction add situation when account is empty
prevoutDBKeys delete return value
filterAccountTxs filter contract transaction to reduce unrelated transaction

* fix golint for blockchain/account/reserve.go

* optimise the import

* adjust format for golint

* adjust format

6 years agofix import issue (#417)
Paladz [Tue, 13 Mar 2018 02:40:19 +0000 (10:40 +0800)]
fix import issue (#417)

6 years agowallet add contract utxo db (#414)
oysheng [Tue, 13 Mar 2018 02:39:06 +0000 (10:39 +0800)]
wallet add contract utxo db (#414)

* standard transaction reserve utxo filter out contract utxo

* distinguish StandardUTXO and ContractUTXO
modfiy spendUTXOAction into no account, the contract utxo is not need to sign
wallet add contract utxo db
adjust function parameter format: the end of parameter is error

* delete ExtContractTag because contract utxo is stored in ContractUTXO

* spendUTXOAction add situation when account is empty
prevoutDBKeys delete return value
filterAccountTxs filter contract transaction to reduce unrelated transaction

* fix golint for blockchain/account/reserve.go

* optimise the import

6 years agoRemove transaction reference data (#416)
Yongfeng LI [Tue, 13 Mar 2018 02:19:32 +0000 (10:19 +0800)]
Remove transaction reference data (#416)

* remove transaction level ReferenceData

* remove setTxRefDataAction

* remove ExtHash in TxHeader

* fix the unit wallet unit test

* remove the vm txdata opcode

* clean the txbuild due to we don't have txData any more

6 years agoSeed (#415)
Paladz [Tue, 13 Mar 2018 01:42:38 +0000 (09:42 +0800)]
Seed (#415)

* add seed generate rule

* edit the getWork resp

* add golint

6 years agorename the file from mempool.go -> txpool.go (#411)
Paladz [Sat, 10 Mar 2018 08:16:38 +0000 (16:16 +0800)]
rename the file from mempool.go -> txpool.go (#411)

6 years agoGetwork (#410)
Paladz [Sat, 10 Mar 2018 07:53:35 +0000 (15:53 +0800)]
Getwork (#410)

* edit the getwork api

* edit the cmd miner work function

6 years agoupdate GenesisBlock nounce (#409)
HAOYUatHZ [Sat, 10 Mar 2018 06:48:52 +0000 (14:48 +0800)]
update GenesisBlock nounce (#409)

6 years agoedit get reward respone (#406)
Paladz [Sat, 10 Mar 2018 02:27:28 +0000 (10:27 +0800)]
edit get reward respone (#406)

* edit get reward respone

* delete used para in resp

* add the get-block-header-by-height api

* add a test cmd function

6 years agoDev mining (#390)
Chengcheng Zhang [Sat, 10 Mar 2018 01:49:10 +0000 (09:49 +0800)]
Dev mining (#390)

* update

* update

* delete comment

* update tensority, same with c++

* add smix.go

* tensority is right

* add TestHash()

* add TestCalcSeedCache

* add TestCalcSeedCache

* Update scrypt.go

* mining/tensority: Time & space opt for dataIdentity[] init in mulMatrix()

* clean up code

* clean up codes

* remove hexutil files

* update tensority test

6 years agoAdd p2p network manager function (#397)
yahtoo [Fri, 9 Mar 2018 17:24:44 +0000 (01:24 +0800)]
Add p2p network manager function (#397)

* Add p2p network manager function

* Adjust the code logic

* Optimize code

6 years agofix multi-sign account index (#407)
Yongfeng LI [Fri, 9 Mar 2018 08:20:50 +0000 (16:20 +0800)]
fix multi-sign account index (#407)

* fix multi-sign account index

* normalize multi-sign account index db key

6 years agofix import private key (#405)
Yongfeng LI [Fri, 9 Mar 2018 06:09:02 +0000 (14:09 +0800)]
fix import private key (#405)

6 years agoadd make bytomd to make file (#404)
Paladz [Thu, 8 Mar 2018 05:58:14 +0000 (13:58 +0800)]
add make bytomd to make file (#404)

6 years agoMining pool (#403)
Paladz [Thu, 8 Mar 2018 03:21:42 +0000 (11:21 +0800)]
Mining pool (#403)

* revert the cpu miner

* init version of minepool

* fix bug

* edit the test function

* fix the werid mutex issue

* change the name from minepool to miningpool

* fix check reward api

* change the api url

* change the url

6 years agoMerge pull request #402 from Bytom/disable-log-colors
Blockmeta-区块元 [Wed, 7 Mar 2018 02:50:23 +0000 (10:50 +0800)]
Merge pull request #402 from Bytom/disable-log-colors

Disable colored logging

6 years agoDisable colored logging
Liu-Cheng Xu [Wed, 7 Mar 2018 02:32:01 +0000 (10:32 +0800)]
Disable colored logging

6 years agoinit version of charge tx size gas (#394)
Paladz [Tue, 6 Mar 2018 06:32:32 +0000 (14:32 +0800)]
init version of charge tx size gas (#394)

* init version of charge tx size gas

* edit the code a little bit

* change the storage gate rate

* fix a tx size bug

* fix for code review

6 years agoAdd md5 check (#398)
Liu-Cheng Xu [Tue, 6 Mar 2018 02:18:11 +0000 (10:18 +0800)]
Add md5 check (#398)

6 years agoinit version of edit block header (#389)
Paladz [Thu, 1 Mar 2018 09:51:01 +0000 (17:51 +0800)]
init version of edit block header (#389)

* init version of edit block header

* elegant the code a little bit

* fix isssue error

6 years agoAutomize the compilation of cross platform binary application (#387)
Liu-Cheng Xu [Thu, 1 Mar 2018 09:19:09 +0000 (17:19 +0800)]
Automize the compilation of cross platform binary application (#387)

* Automize the compilation of cross platform binary application

* Add the default target

* Add phony

* Ingore target

* Refactor release target

6 years agop2sh use RawWitnessKeys (#386)
Paladz [Tue, 27 Feb 2018 05:00:02 +0000 (13:00 +0800)]
p2sh use RawWitnessKeys (#386)

* p2sh use RawWitnessKeys

* change test key name for fix delay issue

* edit test dir name

6 years agoSkip p2p tests (#385)
Liu-Cheng Xu [Tue, 27 Feb 2018 02:00:00 +0000 (10:00 +0800)]
Skip p2p tests (#385)

Skip all the tests in p2p when running `go test`.

6 years agoupdate dashboard (#379)
李永峰 [Mon, 12 Feb 2018 06:22:27 +0000 (14:22 +0800)]
update dashboard (#379)

1. transaction pagination
2. simplify new transaction
3. i18n
4. expose new transaction advanced setting
5. fix bugs

6 years agoSign process (#371)
Paladz [Fri, 9 Feb 2018 05:50:23 +0000 (13:50 +0800)]
Sign process (#371)

* support sign between different node

* fix for golint

* sign password doesn't need array any more

6 years agoadd comment (#374)
Paladz [Thu, 8 Feb 2018 10:30:24 +0000 (18:30 +0800)]
add comment (#374)

6 years agoforgot delete old unit test (#373)
Paladz [Thu, 8 Feb 2018 08:00:58 +0000 (16:00 +0800)]
forgot delete old unit test (#373)

6 years agofix retire issue bug (#372)
Paladz [Thu, 8 Feb 2018 07:46:47 +0000 (15:46 +0800)]
fix retire issue bug (#372)

6 years agoAdd unit test for wallet (#354)
Liu-Cheng Xu [Thu, 8 Feb 2018 07:45:15 +0000 (15:45 +0800)]
Add unit test for wallet (#354)

* Add unit test for wallet

* Update accordingly

6 years agoUse *chainjson.HexBytes instead of *json.RawMessage (#370)
icodezjb [Thu, 8 Feb 2018 07:24:51 +0000 (15:24 +0800)]
Use *chainjson.HexBytes instead of *json.RawMessage (#370)

6 years agoChange blockheader support json encode/decode (#367)
Guanghua Guo [Wed, 7 Feb 2018 09:24:33 +0000 (17:24 +0800)]
Change blockheader support json encode/decode (#367)

* Change blockheader support json encode/decode

* Add json comment

6 years agofix apply tx to handle the retire (#366)
Paladz [Tue, 6 Feb 2018 08:57:51 +0000 (16:57 +0800)]
fix apply tx to handle the retire (#366)

6 years agouse UTXO ReservationsPeriod (#364)
icodezjb [Tue, 6 Feb 2018 08:02:21 +0000 (16:02 +0800)]
use UTXO ReservationsPeriod (#364)

6 years agoDon't init logrus in a seperate file (#361)
Liu-Cheng Xu [Mon, 5 Feb 2018 01:33:45 +0000 (09:33 +0800)]
Don't init logrus in a seperate file (#361)

The logging funcationality is broken when crossing compile the
executable file due to some unknown machnisms related to the main
package. So, move `log_hook.go` to `main.go`.

6 years agoremove old wallet.enable flag (#347)
d [Fri, 2 Feb 2018 07:48:10 +0000 (08:48 +0100)]
remove old wallet.enable flag (#347)

* Fix rpc server error (#195)

* remove old wallet.enable flag

6 years agofix bytomd panic when launch more web dashboard (#358)
icodezjb [Fri, 2 Feb 2018 06:01:25 +0000 (14:01 +0800)]
fix bytomd panic when launch more web dashboard (#358)

6 years agofix index external asset definition (#355)
icodezjb [Fri, 2 Feb 2018 05:45:10 +0000 (13:45 +0800)]
fix index external asset definition (#355)

6 years agoAdd walletdb recover function from keystore (#340)
yahtoo [Thu, 1 Feb 2018 07:02:34 +0000 (15:02 +0800)]
Add walletdb recover function from keystore (#340)

* Add walletdb recover function

* Fix walletUpdater goroutine data race bug

* Refactor walletdb recover from keystore code

* Delete useless lock

* Change rescanBlocks signal transfer

6 years agoChange version &&support 386 multi platform (#344)
Guanghua Guo [Thu, 1 Feb 2018 06:59:24 +0000 (14:59 +0800)]
Change version &&support 386 multi platform (#344)

6 years agoupdate dashboard (#345)
李永峰 [Thu, 1 Feb 2018 06:57:03 +0000 (14:57 +0800)]
update dashboard (#345)

6 years agoMiner (#329)
Guanghua Guo [Wed, 31 Jan 2018 11:56:26 +0000 (19:56 +0800)]
Miner (#329)

* Support rpc mining

* Add submit work funcion & rpc miner work

* Add resume chan

* Resume one goroutine test ok

* Fix a bug about resume

* Fix a bug, solveWork not quit

* Change import sequence

* Fix merge build failed

* loop call miner

* Fix a bug solveWork stop problem

6 years agosuper clean tensority init push (#337)
Paladz [Wed, 31 Jan 2018 07:10:02 +0000 (15:10 +0800)]
super clean tensority init push (#337)

* super clean tensority init push

* modify hashMatrix

6 years agoAdd import private key progress query (#331)
yahtoo [Wed, 31 Jan 2018 07:09:05 +0000 (15:09 +0800)]
Add import private key progress query (#331)

* Add import private key progress query

* Add xpub return when get progress

* Store account address index separately

* Add private key import complete flag

* Add import private key rollback process

* Refactor private key import code

* Fix the divisor zero problem

* Fix rescan progress return logic problem

* Fix variable reading and writing conflicts

6 years agocheck key and account before import key (#335)
李永峰 [Tue, 30 Jan 2018 07:48:21 +0000 (15:48 +0800)]
check key and account before import key (#335)

* check key and account before import key

* leverate error return

* remove unused function

6 years agoTensority (#334)
Paladz [Mon, 29 Jan 2018 12:08:35 +0000 (20:08 +0800)]
Tensority (#334)

* add  support lib for tensority

* add ltc scrypt algorithm

6 years agoadd support lib for tensority (#333)
Paladz [Mon, 29 Jan 2018 11:51:16 +0000 (19:51 +0800)]
add  support lib for tensority (#333)

6 years agoMake sure that coinbase utxo which has been some blocks confirmed whe… (#326)
icodezjb [Mon, 29 Jan 2018 05:45:48 +0000 (13:45 +0800)]
Make sure that coinbase utxo which has been some blocks confirmed whe… (#326)

* Make sure that coinbase utxo which has been some blocks confirmed when build transation

* remove utxo cache

* ErrMatchUTXO and ErrReservation

* return pending error

* code clean

6 years agoTxpool upgrade (#327)
Paladz [Mon, 29 Jan 2018 02:02:00 +0000 (10:02 +0800)]
Txpool upgrade (#327)

* change the block time from ms to second

* update block header time from ms to scond

* limit block max time

* txpool add uncommit utxo

* txpool remove tx will clean the utxo map

* tx add max time

* update for code review

* add log info

6 years agoDon't init native asset in init function (#324)
Liu-Cheng Xu [Thu, 25 Jan 2018 06:25:27 +0000 (14:25 +0800)]
Don't init native asset in init function (#324)

* Don't init native asset in init function

Previously, the init of logrus is after the invoke of creating native
asset, which may lead to incomplete logging.

* InitNativeAsset before NewRegistry

* Call initNativeAsset in NewRegistry

6 years agoadd dashboard with fixing create key (#325)
李永峰 [Thu, 25 Jan 2018 03:15:06 +0000 (11:15 +0800)]
add dashboard with fixing create key (#325)

6 years agocore upgrade (#310)
Paladz [Wed, 24 Jan 2018 06:44:07 +0000 (14:44 +0800)]
core upgrade (#310)

* tmp save

* fix the small bug

* add bit map status struct

* add unit test

* init push for core upgrade

* update the wallet part for core upgrade

* fix bug

* add utxo update

* fix for unit test

* fix mining part bug

* first version of elegant

* fix a mining part bug

* vm verify small change

* fix wallet part get transactions pointer bug

* code review variable rename

6 years agoMiner - proof of work (#311)
Guanghua Guo [Wed, 24 Jan 2018 01:37:10 +0000 (09:37 +0800)]
Miner - proof of work (#311)

* Add cmd/miner

* Add marshal function

* WorkResp mashal and unmashal ok

* miner getwork and do work ok

* Delete dead rpc code

* Delete WorkResp Unmarshal and Marshal function

6 years agoFull BIP32 EdDSA compatibility (#314)
yahtoo [Tue, 23 Jan 2018 08:58:32 +0000 (16:58 +0800)]
Full BIP32 EdDSA compatibility (#314)

6 years agoPassword array (#316)
icodezjb [Tue, 23 Jan 2018 08:37:17 +0000 (16:37 +0800)]
Password array (#316)

* Fix Key not Found Problem

Remove XPrv cache
Change password string to array

* use password array

* code clean

6 years agoEliminate resWrapper (#315)
Liu-Cheng Xu [Tue, 23 Jan 2018 07:43:04 +0000 (15:43 +0800)]
Eliminate resWrapper (#315)

- also standardize the imports of `wallet.go`

6 years agoAdd passwords and Remove xprv cache (#267)
Blockmeta-区块元 [Tue, 23 Jan 2018 02:38:01 +0000 (10:38 +0800)]
Add passwords and Remove xprv cache  (#267)

* Fix Key not Found Problem

Remove XPrv cache
Change password string to array

* Add password array

fix test bug

* Truncate useless codes

Return error ,no more "if"

6 years agoAdd miner's getWork function (#306)
Guanghua Guo [Mon, 22 Jan 2018 02:24:57 +0000 (10:24 +0800)]
Add miner's getWork function (#306)

6 years agoAdd blockchain/accounts,assets test (#308)
Liu-Cheng Xu [Mon, 22 Jan 2018 02:19:51 +0000 (10:19 +0800)]
Add blockchain/accounts,assets test (#308)

6 years agoSupport list transactions summary (#303)
icodezjb [Fri, 19 Jan 2018 05:00:48 +0000 (13:00 +0800)]
Support list transactions summary (#303)

* Support list transactions summary

* use GetTransactionsSummary with the same transactions data

* Update GetTransactionsSummary

* format code

6 years agoAdd external asset ailas and definition (#278)
icodezjb [Fri, 19 Jan 2018 01:53:05 +0000 (09:53 +0800)]
Add external asset ailas and definition (#278)

* Save external asset alias and definition

(cherry picked from commit 0c59d87)

* Add btm definition

(cherry picked from commit 6c8d2b5)

* rename external asset alias

* use getNativeAsset

* skip save local asset definition

* index external asset definition

* Add update-asset-alias cmd

* Use assetID as asset alias if no alias in definition

* Add update-asset-alias ErrNullAlias

* Add native_asset_definition in genesis.json

* Reverse native_asset_definition

* Unused SerializeAssetDef

* use Registry.FindByID

* use CalcExtAssetKey

* Only remove aliasCache

* Add cache newAlias to assetID

* Resolve code conflict