OSDN Git Service

bytom/bytom.git
6 years agoCache utxos (#169)
icodezjb [Tue, 5 Dec 2017 01:36:23 +0000 (09:36 +0800)]
Cache utxos (#169)

* Cache the account utxos

* Remove IndexAssets

6 years agoMerge pull request #165 from Bytom/meger_master
Guanghua Guo [Mon, 4 Dec 2017 02:33:08 +0000 (10:33 +0800)]
Merge pull request #165 from Bytom/meger_master

Meger master

6 years agoMerge master
gguoss [Mon, 4 Dec 2017 02:24:49 +0000 (10:24 +0800)]
Merge master

6 years agochange Max transaction size to 1048576 bytes and Max block size to 10485760 bytes...
icodezjb [Thu, 30 Nov 2017 10:10:30 +0000 (18:10 +0800)]
change  Max transaction size to 1048576 bytes and Max block size to 10485760 bytes (#158)

6 years agochange MaxTxSize and MaxBlockSzie to 1048576 bytes (#156) v0.2.0
icodezjb [Thu, 30 Nov 2017 09:22:51 +0000 (17:22 +0800)]
change MaxTxSize and MaxBlockSzie to 1048576 bytes (#156)

6 years agoUpdate README.md (#157)
icodezjb [Thu, 30 Nov 2017 09:22:14 +0000 (17:22 +0800)]
Update README.md (#157)

* Update README.md

6 years agoChange api call port 98888 (#154)
Guanghua Guo [Thu, 30 Nov 2017 08:26:42 +0000 (16:26 +0800)]
Change api call port 98888 (#154)

* Change api port 9888

6 years agoUpdate for bytomcli help cmd (#155)
icodezjb [Thu, 30 Nov 2017 08:16:32 +0000 (16:16 +0800)]
Update for bytomcli help cmd (#155)

6 years agoHsm (#152)
Paladz [Thu, 30 Nov 2017 03:24:10 +0000 (11:24 +0800)]
Hsm (#152)

* tmp save

* update the test case sign logic

6 years agoMerge pull request #150 from Bytom/dev
Paladz [Thu, 30 Nov 2017 02:30:15 +0000 (10:30 +0800)]
Merge pull request #150 from Bytom/dev

Dev

6 years agoFix txfeed panic when wallet disabled (#151)
yahtoo [Thu, 30 Nov 2017 02:29:11 +0000 (10:29 +0800)]
Fix txfeed panic when wallet disabled (#151)

6 years agoChange ip seeds (#149)
Guanghua Guo [Wed, 29 Nov 2017 11:45:17 +0000 (19:45 +0800)]
Change ip seeds (#149)

6 years agoDev (#148)
Guanghua Guo [Wed, 29 Nov 2017 09:41:53 +0000 (17:41 +0800)]
Dev (#148)

* Add rpc token authenticate function (#135)

* Unify json response (#130)

* Unify gas-rate json response experimentally

* Unify block-height and is-mining

* Reuse duplicated code

* Don't ignore error check

* Unify get-block-by-height and get-block-transactions-count-by-height

* Unify net.go's json response (#136)

* Unify net.go's json response

* Add TODO

* Unify block-hash (#137)

* Support remote spend transaction (#139)

* Support remote spend transaction

* quick fix for snapshot key and a compile time error (#142)

* Bvm (#138)

* delete unused parameters from chain core

* add unit test for snapshot tree proto

* Add txfeed commands to cobra & Change accesstoken rpc to jsend format (#140)

* Add txfeed comands to cobra

* Change accesstoken rpc to jsend format

* Change accesstoken handler  from  "a" to "br"

* remove exp (#143)

* Multi account issue (#144)

* Support multi account issue asset

* Update main.go

* Add configure chain_id (#145)

* Update README.md (#147)

* Update README.md

6 years agoUpdate README.md (#147)
Guanghua Guo [Wed, 29 Nov 2017 09:36:17 +0000 (17:36 +0800)]
Update README.md (#147)

* Update README.md

6 years agoAdd configure chain_id (#145)
Guanghua Guo [Wed, 29 Nov 2017 05:56:28 +0000 (13:56 +0800)]
Add configure chain_id (#145)

6 years agoMulti account issue (#144)
icodezjb [Wed, 29 Nov 2017 05:54:07 +0000 (13:54 +0800)]
Multi account issue (#144)

* Support multi account issue asset

* Update main.go

6 years agoremove exp (#143)
Paladz [Wed, 29 Nov 2017 03:19:15 +0000 (11:19 +0800)]
remove exp (#143)

6 years agoAdd txfeed commands to cobra & Change accesstoken rpc to jsend format (#140)
yahtoo [Wed, 29 Nov 2017 01:48:38 +0000 (09:48 +0800)]
Add txfeed commands to cobra & Change accesstoken rpc to jsend format (#140)

* Add txfeed comands to cobra

* Change accesstoken rpc to jsend format

* Change accesstoken handler  from  "a" to "br"

6 years agoBvm (#138)
Paladz [Tue, 28 Nov 2017 15:32:27 +0000 (23:32 +0800)]
Bvm (#138)

* delete unused parameters from chain core

* add unit test for snapshot tree proto

6 years agoquick fix for snapshot key and a compile time error (#142)
Paladz [Tue, 28 Nov 2017 14:20:36 +0000 (22:20 +0800)]
quick fix for snapshot key and a compile time error (#142)

6 years agoSupport remote spend transaction (#139)
icodezjb [Tue, 28 Nov 2017 07:20:35 +0000 (15:20 +0800)]
Support remote spend transaction (#139)

* Support remote spend transaction

6 years agoUnify block-hash (#137)
Liu-Cheng Xu [Tue, 28 Nov 2017 06:04:09 +0000 (14:04 +0800)]
Unify block-hash (#137)

6 years agoUnify net.go's json response (#136)
Liu-Cheng Xu [Tue, 28 Nov 2017 02:10:37 +0000 (10:10 +0800)]
Unify net.go's json response (#136)

* Unify net.go's json response

* Add TODO

6 years agoUnify json response (#130)
Liu-Cheng Xu [Mon, 27 Nov 2017 08:57:07 +0000 (16:57 +0800)]
Unify json response (#130)

* Unify gas-rate json response experimentally

* Unify block-height and is-mining

* Reuse duplicated code

* Don't ignore error check

* Unify get-block-by-height and get-block-transactions-count-by-height

6 years agoAdd rpc token authenticate function (#135)
yahtoo [Mon, 27 Nov 2017 08:45:24 +0000 (16:45 +0800)]
Add rpc token authenticate function (#135)

6 years agoMerge pull request #132 from Bytom/dev
Guanghua Guo [Mon, 27 Nov 2017 02:40:37 +0000 (10:40 +0800)]
Merge pull request #132 from Bytom/dev

Dev

6 years agoUpdate for hsm_test (#131)
icodezjb [Mon, 27 Nov 2017 02:37:07 +0000 (10:37 +0800)]
Update for hsm_test (#131)

* Update for hsm_test

6 years agoSupport list-transactions (#126)
icodezjb [Fri, 24 Nov 2017 09:33:48 +0000 (17:33 +0800)]
Support list-transactions (#126)

* Support list-transactions

* Update for code review

* add wallet package

* Add delete transactions function

* Update code clean

6 years agoGenesis (#127)
Guanghua Guo [Fri, 24 Nov 2017 05:36:40 +0000 (13:36 +0800)]
Genesis (#127)

* Add genesis block function

* Fix build error

* Run ok

* Add free genesis block

* Add genesis_test.go

* golink

* Update from review

* Formating

* Formating

6 years agomodify about GasRate (#128)
oysheng [Thu, 23 Nov 2017 10:23:20 +0000 (18:23 +0800)]
modify about GasRate (#128)

6 years agoadd ivy compiler (#125)
oysheng [Thu, 23 Nov 2017 02:41:41 +0000 (10:41 +0800)]
add ivy compiler (#125)

6 years agoAdd is-mining and gas-rate (#124)
Liu-Cheng Xu [Wed, 22 Nov 2017 10:40:27 +0000 (18:40 +0800)]
Add is-mining and gas-rate (#124)

* Add is-mining and gas-rate

* Change gasRate to public

6 years agoFix outdated build instruction (#123)
Liu-Cheng Xu [Wed, 22 Nov 2017 09:13:40 +0000 (17:13 +0800)]
Fix outdated build instruction (#123)

6 years agofinish todo: delete old mainchain && snapshot in db (#122)
Paladz [Wed, 22 Nov 2017 07:49:30 +0000 (15:49 +0800)]
finish todo: delete old mainchain && snapshot in db (#122)

6 years agoBvm (#118)
Paladz [Wed, 22 Nov 2017 03:05:43 +0000 (11:05 +0800)]
Bvm (#118)

* add seed

* change the init block seed

* add seedCache model

* fix the algorithm func

* fix the small details

* fix the issue on code review

* fix init seed generate

6 years agoBlock height get block tx cnt by height (#121)
Liu-Cheng Xu [Tue, 21 Nov 2017 10:47:54 +0000 (18:47 +0800)]
Block height get block tx cnt by height (#121)

* Add get-block-transactions-by-height rpc

* Add block-height

* Simplify get-best-block-hash

6 years agoadd access token authentication function to cobra (#117)
yahtoo [Tue, 21 Nov 2017 02:00:04 +0000 (10:00 +0800)]
add access token authentication function to cobra (#117)

* add access token authentication function

* add access token authentication function

6 years agoIncorporate Cobra (#110)
Liu-Cheng Xu [Mon, 20 Nov 2017 08:29:36 +0000 (16:29 +0800)]
Incorporate Cobra (#110)

* Introduce cobra

* Return when error throws

* Add asset related rpc

* A rough sketch

* Add lame getBlockByNumber

* A little refactor

* Return when error occurs

Subcommand               | Y/N
:----                    | :----:
bind-account             | Y!
bind-asset               | Y!
create-account           | Y!
create-key               | Y!
delete-key               | Y
get-best-block-hash      | Y
get-block-header-by-hash | Y
get-block-by-hash        | Y
get-block-by-height      | N
get-block-header-by-hash | Y
list-accounts            | Y
list-assets              | Y
list-keys                | Y!
net-info                 | Y
net-listening            | Y
peer-count               | Y
version                  | Y

Notes:

- Y: stable
- Y!: test needed
- N: not finished

* Add net-syncing

* Use bytom/version

* Fix missing get-block-by-height hook

* Refactor

* Reuse viable struct

* Fix golint warning

6 years agoMerge pull request #115 from Bytom/dev
Guanghua Guo [Mon, 20 Nov 2017 04:59:25 +0000 (12:59 +0800)]
Merge pull request #115 from Bytom/dev

Unit test (#113)

6 years agoUnit test (#113)
Guanghua Guo [Mon, 20 Nov 2017 03:07:42 +0000 (11:07 +0800)]
Unit test (#113)

* Correct unit test

* fix clean temp files generated by accesstoken test (#114)

6 years agoMerge pull request #112 from Bytom/dev
Guanghua Guo [Mon, 20 Nov 2017 01:33:16 +0000 (09:33 +0800)]
Merge pull request #112 from Bytom/dev

Dev

6 years agoadd access token function (#111)
yahtoo [Fri, 17 Nov 2017 07:30:37 +0000 (15:30 +0800)]
add access token function (#111)

* add access token function

* add access token function

* add access token function

6 years agoRefactor accountutxos DB rollback when orphan block rollback (#102)
icodezjb [Fri, 17 Nov 2017 06:19:10 +0000 (14:19 +0800)]
Refactor accountutxos DB rollback when orphan block rollback (#102)

* Refactor accountutxos DB rollback when orphan block rollback

* Update for code review

* Reverse account utxo by deleting instead of deleting flag

* Delete unused block Height

* store detach and attach list in txdb

* Delete pin module to adapt to orphan rollback

* update code clean

* Update some code after golint check

* Update for code review

* Delete comment for bytomcli list-accounts

* Update walletInfo key

6 years agoAdd go profiling programs (#109)
Guanghua Guo [Fri, 17 Nov 2017 06:08:48 +0000 (14:08 +0800)]
Add go profiling programs (#109)

6 years agofix the spend-tx error (#108)
Paladz [Thu, 16 Nov 2017 15:00:49 +0000 (23:00 +0800)]
fix the spend-tx error (#108)

6 years agoFix a bug (p2p pex enable pattern to connet not enable pattern) (#107)
Guanghua Guo [Thu, 16 Nov 2017 04:04:19 +0000 (12:04 +0800)]
Fix a bug (p2p pex enable pattern to connet not enable pattern) (#107)

#106

6 years agoAdd txfeed function (#103)
yahtoo [Wed, 15 Nov 2017 05:43:23 +0000 (13:43 +0800)]
Add txfeed function (#103)

* Add txfeed function

* Add txfeed function

* Add txfeed function

* Add txfeed function

* Add txfeed function

* Add txfeed function

6 years agoBvm (#104)
Paladz [Tue, 14 Nov 2017 09:11:46 +0000 (17:11 +0800)]
Bvm (#104)

* add a magic func for enable AI mining

6 years agoBvm (#101)
Paladz [Mon, 13 Nov 2017 09:41:06 +0000 (17:41 +0800)]
Bvm (#101)

* fix #95

6 years agoBvm (#100)
Paladz [Mon, 13 Nov 2017 09:04:37 +0000 (17:04 +0800)]
Bvm (#100)

* chain.state using block.height instead of height

* define the template structure for coinbase transaction

* fix for code review, golint and elegant

* fix a acp key error

* fix for hsm_test bug

* fix bug for list account

* fix for code review

* add log info to mining

6 years agoMerge pull request #99 from Bytom/dev
Guanghua Guo [Mon, 13 Nov 2017 09:01:56 +0000 (17:01 +0800)]
Merge pull request #99 from Bytom/dev

Dev

6 years agoBvm (#96)
Paladz [Mon, 13 Nov 2017 07:18:34 +0000 (15:18 +0800)]
Bvm (#96)

* chain.state using block.height instead of height

* define the template structure for coinbase transaction

* fix for code review, golint and elegant

* fix a acp key error

* fix for hsm_test bug

* fix bug for list account

* fix for code review

6 years agoSet p2p timeout from configure file (#98)
Guanghua Guo [Mon, 13 Nov 2017 01:27:56 +0000 (09:27 +0800)]
Set p2p timeout from configure file (#98)

6 years agoAllow failure on the tip version of golang (#97)
Liu-Cheng Xu [Thu, 9 Nov 2017 08:41:45 +0000 (16:41 +0800)]
Allow failure on the tip version of golang (#97)

6 years agoRadom node key (#92)
Guanghua Guo [Thu, 9 Nov 2017 01:52:05 +0000 (09:52 +0800)]
Radom node key (#92)

* Fix a bug about fixed node key

* Change according from review

6 years agoMerge pull request #91 from Bytom/ci-test
Guanghua Guo [Wed, 8 Nov 2017 01:23:37 +0000 (09:23 +0800)]
Merge pull request #91 from Bytom/ci-test

Update .travis.yml

6 years agoUpdate .travis.yml
Liu-Cheng Xu [Wed, 8 Nov 2017 01:20:08 +0000 (19:20 -0600)]
Update .travis.yml

6 years agoAdd getBlockEntryByHash rpc call (#87)
Liu-Cheng Xu [Tue, 7 Nov 2017 11:43:50 +0000 (19:43 +0800)]
Add getBlockEntryByHash rpc call (#87)

* Solve confilicts

* Refine variable name

* Refactor

* Fix transactions missing

* Rewrite

* Append JSON

6 years agoMerge pull request #89 from Bytom/dev v0.1.4
Guanghua Guo [Mon, 6 Nov 2017 09:04:15 +0000 (17:04 +0800)]
Merge pull request #89 from Bytom/dev

Dev

6 years agoAdd get-block-header-by-hash subcommand (#88)
Liu-Cheng Xu [Mon, 6 Nov 2017 08:59:57 +0000 (16:59 +0800)]
Add get-block-header-by-hash subcommand (#88)

* Add get-block-header-by-hash subcommand

* Catch err in hash.UnmarshalText

6 years agoTestnet (#86)
Guanghua Guo [Mon, 6 Nov 2017 06:54:51 +0000 (14:54 +0800)]
Testnet (#86)

* Delete tendermint log initialize

* Delete init function

* Add network initialize function

6 years agoMerge branch 'dev' of git://github.com/Bytom/bytom
Chengcheng Zhang [Mon, 6 Nov 2017 03:12:12 +0000 (11:12 +0800)]
Merge branch 'dev' of git://github.com/Bytom/bytom

6 years agoDelete tendermint log initialize (#85)
Guanghua Guo [Fri, 3 Nov 2017 07:03:33 +0000 (15:03 +0800)]
Delete tendermint log initialize (#85)

* Delete tendermint log initialize

* Delete init function

6 years agoFix chain's height is 0
gguoss [Fri, 3 Nov 2017 07:01:02 +0000 (15:01 +0800)]
Fix chain's height is 0

6 years agoRemove rpc updateAlias (#84)
Blockmeta-区块元 [Fri, 3 Nov 2017 06:17:51 +0000 (14:17 +0800)]
Remove rpc updateAlias (#84)

remove rpc updateAlias  for  alias should be unchangable

6 years agoMerge pull request #83 from Bytom/wallet
Blockmeta-区块元 [Fri, 3 Nov 2017 05:43:46 +0000 (13:43 +0800)]
Merge pull request #83 from Bytom/wallet

Add Wallet module

6 years agoFix duplicated alias bug and remove updateAlias rpc
Blockmeta-区块元 [Thu, 2 Nov 2017 15:01:50 +0000 (23:01 +0800)]
Fix duplicated alias bug and remove updateAlias rpc

fix bug for “duplicated alias happened at createKey“
remove updateAlias rpc for it‘s useless

6 years agoMerge remote-tracking branch 'origin/dev' into wallet
Blockmeta-区块元 [Thu, 2 Nov 2017 10:36:33 +0000 (18:36 +0800)]
Merge remote-tracking branch 'origin/dev' into wallet

6 years agoRemove vscode config
Blockmeta-区块元 [Thu, 2 Nov 2017 10:30:32 +0000 (18:30 +0800)]
Remove vscode config

Remove launch.json

6 years agochain.state using block.height instead of height (#82)
Paladz [Thu, 2 Nov 2017 09:41:42 +0000 (04:41 -0500)]
chain.state using block.height instead of height (#82)

6 years agoAdd rpc interface: get-current-block-hash (#80)
Guanghua Guo [Thu, 2 Nov 2017 08:51:36 +0000 (16:51 +0800)]
Add rpc interface: get-current-block-hash (#80)

* Add rpc interface: get-current-block-hash

* Update according review

6 years agodelete btmhash
Chengcheng Zhang [Thu, 2 Nov 2017 08:40:47 +0000 (16:40 +0800)]
delete btmhash

6 years agoAdd package cespare/cp
Blockmeta-区块元 [Thu, 2 Nov 2017 08:39:55 +0000 (16:39 +0800)]
Add package cespare/cp

Add package cespare/cp

6 years agoAdd thirdpart package and fix bugs of testcases
Blockmeta-区块元 [Thu, 2 Nov 2017 08:32:53 +0000 (16:32 +0800)]
Add thirdpart package and fix bugs of testcases

Add package cespare/cp
Fix pseudohsm testcases bugs  of "Keeping a clean workspace"

6 years agoMerge remote-tracking branch 'origin/dev' into wallet
Blockmeta-区块元 [Thu, 2 Nov 2017 06:11:40 +0000 (14:11 +0800)]
Merge remote-tracking branch 'origin/dev' into wallet

6 years agoFix difficulty_test error
gguoss [Thu, 2 Nov 2017 05:47:09 +0000 (13:47 +0800)]
Fix difficulty_test error

6 years agofix calDiff bug due to we set the genesis block height to 1 instead of 0
paladz [Thu, 2 Nov 2017 04:36:10 +0000 (12:36 +0800)]
fix calDiff bug due to we set the  genesis block height to 1 instead of 0

6 years agoMerge branch 'dev' into bvm
paladz [Thu, 2 Nov 2017 04:27:05 +0000 (12:27 +0800)]
Merge branch 'dev' into bvm

6 years agoupdate make file due to we are using vendor to control all the packages (#78)
Paladz [Thu, 2 Nov 2017 04:26:45 +0000 (23:26 -0500)]
update make file due to we are using vendor to control all the packages (#78)

* update make file due to we are using vendor to control all the packages

* update the makefile due to codereview

* delete grep -v '/rpc/' in makefile

6 years agodelete grep -v '/rpc/' in makefile
paladz [Thu, 2 Nov 2017 04:23:53 +0000 (12:23 +0800)]
delete grep -v '/rpc/' in makefile

6 years agoupdate the makefile due to codereview
paladz [Thu, 2 Nov 2017 04:05:53 +0000 (12:05 +0800)]
update the makefile due to codereview

6 years agoupdate make file due to we are using vendor to control all the packages
paladz [Thu, 2 Nov 2017 03:43:46 +0000 (11:43 +0800)]
update make file due to we are using vendor to control all the packages

6 years agoadd btmhash
Chengcheng Zhang [Thu, 2 Nov 2017 03:23:56 +0000 (11:23 +0800)]
add btmhash

6 years agodelete btmhash
Chengcheng Zhang [Thu, 2 Nov 2017 03:20:11 +0000 (11:20 +0800)]
delete btmhash

6 years agoadd btmhash
Chengcheng Zhang [Thu, 2 Nov 2017 03:15:25 +0000 (11:15 +0800)]
add btmhash

6 years agoMerge remote-tracking branch 'origin/dev' into wallet
Blockmeta-区块元 [Thu, 2 Nov 2017 03:02:02 +0000 (11:02 +0800)]
Merge remote-tracking branch 'origin/dev' into wallet

6 years agoadd stretchr/testify to vendor
paladz [Thu, 2 Nov 2017 02:58:04 +0000 (10:58 +0800)]
add stretchr/testify to vendor

6 years agoadd vendor support for make test
paladz [Thu, 2 Nov 2017 02:54:45 +0000 (10:54 +0800)]
add vendor support for make test

6 years agoMerge branch 'master' of https://github.com/Bytom/bytom-btmhash
Chengcheng Zhang [Thu, 2 Nov 2017 02:10:34 +0000 (10:10 +0800)]
Merge branch 'master' of https://github.com/Bytom/bytom-btmhash

6 years agoMerge remote-tracking branch 'origin/dev' into wallet
Blockmeta-区块元 [Wed, 1 Nov 2017 18:05:28 +0000 (02:05 +0800)]
Merge remote-tracking branch 'origin/dev' into wallet

6 years agoUpdate create-key rpc
Blockmeta-区块元 [Wed, 1 Nov 2017 15:39:23 +0000 (23:39 +0800)]
Update create-key rpc

Add error repsonse for duplicated alias

6 years agoDelete README.md
Chengcheng Zhang [Wed, 1 Nov 2017 14:40:29 +0000 (22:40 +0800)]
Delete README.md

6 years agoCreate README.md
Chengcheng Zhang [Wed, 1 Nov 2017 10:24:36 +0000 (18:24 +0800)]
Create README.md

6 years agoadd more package to our vendor
paladz [Wed, 1 Nov 2017 09:29:56 +0000 (17:29 +0800)]
add more package to our vendor

6 years agoMerge branch 'dev' into wallet
Blockmeta-区块元 [Wed, 1 Nov 2017 09:24:53 +0000 (17:24 +0800)]
Merge branch 'dev' into wallet

6 years agoadd golang.org/x package to our vendor
paladz [Wed, 1 Nov 2017 09:24:13 +0000 (17:24 +0800)]
add golang.org/x package to our vendor

6 years agoFix typo and delete coretest
Blockmeta-区块元 [Wed, 1 Nov 2017 09:24:01 +0000 (17:24 +0800)]
Fix typo and delete coretest

fix typo  "XKey“
delete coretest directory

6 years agoadd more package to our vendor
paladz [Wed, 1 Nov 2017 09:21:22 +0000 (17:21 +0800)]
add more package to our vendor

6 years agoFix bug for hsm test
Blockmeta-区块元 [Wed, 1 Nov 2017 09:11:55 +0000 (17:11 +0800)]
Fix bug for hsm test

fix bug
add comment

6 years agoadd magiconair/properties
paladz [Wed, 1 Nov 2017 09:11:20 +0000 (17:11 +0800)]
add magiconair/properties