OSDN Git Service

bytom/bytom.git
4 years agoedit for code review batch-vaildate-tx
paladz [Fri, 29 Nov 2019 08:06:44 +0000 (16:06 +0800)]
edit for code review

4 years agoedit for code review
paladz [Fri, 29 Nov 2019 07:43:42 +0000 (15:43 +0800)]
edit for code review

4 years agoadd vaildate-block
paladz [Fri, 29 Nov 2019 06:47:55 +0000 (14:47 +0800)]
add vaildate-block

4 years agofix(log): change p2p connection error log level (#1812)
DeKaiju [Fri, 22 Nov 2019 06:23:07 +0000 (14:23 +0800)]
fix(log): change p2p connection error log level (#1812)

4 years agoupdate dockerfile (#1806)
Zhongchun Cao [Wed, 6 Nov 2019 03:22:01 +0000 (11:22 +0800)]
update dockerfile (#1806)

4 years agoupdate doc (#1807)
Zhongchun Cao [Wed, 6 Nov 2019 03:20:52 +0000 (11:20 +0800)]
update doc (#1807)

4 years agomodify import path (#1805)
Zhongchun Cao [Mon, 4 Nov 2019 12:55:09 +0000 (20:55 +0800)]
modify import path (#1805)

* modify import path

* fix travis.yml go import path

4 years agoMerge pull request #1804 from Bytom/clean
Paladz [Tue, 29 Oct 2019 06:10:34 +0000 (14:10 +0800)]
Merge pull request #1804 from Bytom/clean

rm sm2 sm3

4 years agorm sm2 sm3
Chengcheng Zhang [Tue, 29 Oct 2019 06:05:51 +0000 (14:05 +0800)]
rm sm2 sm3

4 years agoMerge pull request #1800 from Bytom/release-notes
Paladz [Thu, 24 Oct 2019 05:15:42 +0000 (13:15 +0800)]
Merge pull request #1800 from Bytom/release-notes

Release notes v1.0.10

4 years agoupdate release note release-notes
Zhiting Lin [Thu, 24 Oct 2019 03:37:00 +0000 (11:37 +0800)]
update release note

4 years agoUpdate release-notes-1.0.10.md
Zhiting Lin [Thu, 24 Oct 2019 03:29:25 +0000 (11:29 +0800)]
Update release-notes-1.0.10.md

4 years agoupdate release note for 1.0.10
Zhiting Lin [Thu, 24 Oct 2019 03:28:05 +0000 (11:28 +0800)]
update release note for 1.0.10

4 years agoMerge pull request #1799 from Bytom/fix_p2p_log_level
Paladz [Thu, 24 Oct 2019 03:06:04 +0000 (11:06 +0800)]
Merge pull request #1799 from Bytom/fix_p2p_log_level

modify p2p network log level

4 years agomodify p2p network log level fix_p2p_log_level
iczc [Wed, 23 Oct 2019 07:09:03 +0000 (15:09 +0800)]
modify p2p network log level

4 years agoMerge pull request #1798 from Bytom/dashboard
Paladz [Wed, 23 Oct 2019 06:31:47 +0000 (14:31 +0800)]
Merge pull request #1798 from Bytom/dashboard

dashboard: update dashboard with chain transactions option.

4 years agodashboard: update dashboard with chain transactions option.
Zhiting Lin [Wed, 23 Oct 2019 06:24:32 +0000 (14:24 +0800)]
dashboard: update dashboard with chain transactions option.

4 years agoChange version 1.0.10 (#1796)
yahtoo [Wed, 23 Oct 2019 06:14:15 +0000 (14:14 +0800)]
Change version 1.0.10 (#1796)

4 years agoupdate dashboard. (#1794)
Zhiting Lin [Tue, 22 Oct 2019 12:30:33 +0000 (20:30 +0800)]
update dashboard. (#1794)

4 years agoupdate flags (#1795)
Chengcheng Zhang [Tue, 22 Oct 2019 06:30:07 +0000 (14:30 +0800)]
update flags (#1795)

4 years agomodify chain tx fee (#1793)
oysheng [Mon, 21 Oct 2019 11:00:13 +0000 (19:00 +0800)]
modify chain tx fee (#1793)

* modify chain tx fee

* optimise

4 years agofix(chain-tx): fix omitempty in estimate_gas resp (#1792)
HAOYUatHZ [Fri, 18 Oct 2019 03:37:58 +0000 (11:37 +0800)]
fix(chain-tx): fix omitempty in estimate_gas resp  (#1792)

* fk

* do his mother a ticket

* init EstimateChainTxGas

* add sum up

* update

* fix maybe

* fix

* k

* ???

* ???

* do

* fix ci bug

* rename

* fix

* fix omitempty

4 years agofeat(api): add estimate-chain-tx-gas (#1791)
HAOYUatHZ [Fri, 18 Oct 2019 02:21:22 +0000 (10:21 +0800)]
feat(api): add estimate-chain-tx-gas (#1791)

* fk

* do his mother a ticket

* init EstimateChainTxGas

* add sum up

* update

* fix maybe

* fix

* k

* ???

* ???

* do

* fix ci bug

* rename

* fix

4 years agoOnly allow ed25519 pubkeys when connecting (#1789)
yahtoo [Sat, 12 Oct 2019 12:29:08 +0000 (20:29 +0800)]
Only allow ed25519 pubkeys when connecting (#1789)

4 years agoSpecify lan discovery service name (#1788)
yahtoo [Thu, 26 Sep 2019 07:08:33 +0000 (15:08 +0800)]
Specify lan discovery service name (#1788)

4 years agoMerge pull request #1787 from Bytom/checkpoint
Paladz [Wed, 18 Sep 2019 08:56:02 +0000 (16:56 +0800)]
Merge pull request #1787 from Bytom/checkpoint

update checkpoint

4 years agoupdate checkpoint
Chengcheng Zhang [Wed, 18 Sep 2019 08:37:04 +0000 (16:37 +0800)]
update checkpoint

4 years agoadd new checkpoint (#1785)
Chengcheng Zhang [Wed, 11 Sep 2019 07:49:18 +0000 (15:49 +0800)]
add new checkpoint (#1785)

* add new checkpoint

* update

4 years agoMerge pull request #1784 from Bytom/add-sign-data
Paladz [Wed, 4 Sep 2019 08:17:08 +0000 (16:17 +0800)]
Merge pull request #1784 from Bytom/add-sign-data

add sign data

4 years agoMerge branch 'dev' into add-sign-data
Chengcheng Zhang [Wed, 4 Sep 2019 07:57:41 +0000 (15:57 +0800)]
Merge branch 'dev' into add-sign-data

4 years agoupdate
Chengcheng Zhang [Wed, 4 Sep 2019 07:51:13 +0000 (15:51 +0800)]
update

4 years agoadd sign data add-sign-data
Chengcheng Zhang [Wed, 4 Sep 2019 07:47:32 +0000 (15:47 +0800)]
add sign data

4 years agoMerge pull request #1783 from Bytom/update-testnet-checkpoint
Paladz [Wed, 4 Sep 2019 07:24:08 +0000 (15:24 +0800)]
Merge pull request #1783 from Bytom/update-testnet-checkpoint

update checkpoint and readme

4 years agoupdate checkpoint and readme update-testnet-checkpoint
Chengcheng Zhang [Wed, 4 Sep 2019 07:13:03 +0000 (15:13 +0800)]
update checkpoint and readme

4 years agoMerge pull request #1780 from Bytom/ban_peer
Paladz [Fri, 16 Aug 2019 07:01:21 +0000 (15:01 +0800)]
Merge pull request #1780 from Bytom/ban_peer

fix ban node failed

4 years agofix ban node failed ban_peer
Yahtoo Ma [Fri, 16 Aug 2019 04:35:18 +0000 (12:35 +0800)]
fix ban node failed

4 years agoMerge pull request #1779 from Bytom/dev-log
Paladz [Thu, 15 Aug 2019 04:13:24 +0000 (12:13 +0800)]
Merge pull request #1779 from Bytom/dev-log

log writer close

4 years agolog writer close
wyjDoraemon [Thu, 15 Aug 2019 04:10:06 +0000 (12:10 +0800)]
log writer close

4 years agoMerge pull request #1777 from Bytom/txpool
Paladz [Wed, 14 Aug 2019 08:55:35 +0000 (16:55 +0800)]
Merge pull request #1777 from Bytom/txpool

restore Tx back to Tx pool when chain is reorganized

4 years agoMerge pull request #1774 from Bytom/orphan
Paladz [Wed, 14 Aug 2019 08:47:59 +0000 (16:47 +0800)]
Merge pull request #1774 from Bytom/orphan

fix the orphan issue

4 years agorestore Tx back to Tx pool when chain is reorganized txpool
Yahtoo Ma [Tue, 13 Aug 2019 07:07:03 +0000 (15:07 +0800)]
restore Tx back to Tx pool when chain is reorganized

4 years agofix the orphan issue orphan
Yahtoo Ma [Tue, 13 Aug 2019 03:40:39 +0000 (11:40 +0800)]
fix the orphan issue

4 years agoMerge pull request #1759 from Bytom/security
Paladz [Mon, 12 Aug 2019 07:52:52 +0000 (15:52 +0800)]
Merge pull request #1759 from Bytom/security

Abstract p2p security module

4 years agoDel expired banned peers when add peer security
Yahtoo Ma [Mon, 5 Aug 2019 02:10:24 +0000 (10:10 +0800)]
Del expired banned peers when add peer

4 years agoDel ErrorHandler function
Yahtoo Ma [Fri, 2 Aug 2019 06:13:34 +0000 (14:13 +0800)]
Del ErrorHandler function

4 years agoMerge pull request #1769 from wyjDoraemon/dev
Paladz [Wed, 31 Jul 2019 11:38:49 +0000 (19:38 +0800)]
Merge pull request #1769 from wyjDoraemon/dev

add bytom logs into files

4 years agoadd bytom logs into files
wyjDoraemon [Wed, 31 Jul 2019 11:24:56 +0000 (19:24 +0800)]
add bytom logs into files

4 years agoMerge pull request #1766 from Bytom/newfix
Paladz [Wed, 31 Jul 2019 06:57:05 +0000 (14:57 +0800)]
Merge pull request #1766 from Bytom/newfix

fix desc

4 years agofix desc
iczc [Wed, 31 Jul 2019 06:54:23 +0000 (14:54 +0800)]
fix desc

4 years agoAbstract p2p security module
Yahtoo Ma [Sat, 22 Jun 2019 09:36:13 +0000 (17:36 +0800)]
Abstract p2p security module

4 years agoMerge pull request #1751 from Bytom/blockfetcher
Paladz [Wed, 29 May 2019 10:14:58 +0000 (18:14 +0800)]
Merge pull request #1751 from Bytom/blockfetcher

Fix block fetcher block insert bug

4 years agoFix block fetcher block insert bug
Yahtoo Ma [Wed, 29 May 2019 09:56:21 +0000 (17:56 +0800)]
Fix block fetcher block insert bug

4 years agoadd block integration test (#1745)
muscle_boy [Thu, 2 May 2019 14:44:56 +0000 (22:44 +0800)]
add block integration test (#1745)

* add block integration test

* format code

* remove unuse code

* fix tx testcase

* remove debug code

4 years agoMerge pull request #1741 from Bytom/fix_empty_pointer
Paladz [Fri, 26 Apr 2019 02:27:19 +0000 (10:27 +0800)]
Merge pull request #1741 from Bytom/fix_empty_pointer

fix the bug

4 years agofix the bug
paladz [Fri, 26 Apr 2019 02:05:05 +0000 (10:05 +0800)]
fix the bug

4 years agoProcess block integra test (#1740)
muscle_boy [Thu, 25 Apr 2019 11:17:21 +0000 (19:17 +0800)]
Process block integra test (#1740)

* block integration test

* fix case

* format code

* change func name

* change func name

4 years agoMerge pull request #1737 from Bytom/fix_amount_zero
Paladz [Wed, 24 Apr 2019 02:26:08 +0000 (10:26 +0800)]
Merge pull request #1737 from Bytom/fix_amount_zero

fix bug

4 years agofix bug
paladz [Wed, 24 Apr 2019 01:52:47 +0000 (09:52 +0800)]
fix bug

4 years agoMerge pull request #1733 from Bytom/conflict
Paladz [Mon, 22 Apr 2019 07:01:12 +0000 (15:01 +0800)]
Merge pull request #1733 from Bytom/conflict

Wallet: fix restore deleted account bug (#1559)

4 years agoWallet: fix restore deleted account bug (#1559)
yahtoo [Tue, 29 Jan 2019 15:29:30 +0000 (23:29 +0800)]
Wallet: fix restore deleted account bug (#1559)

4 years agoMerge pull request #1731 from Bytom/edit_version
Paladz [Mon, 22 Apr 2019 06:17:43 +0000 (14:17 +0800)]
Merge pull request #1731 from Bytom/edit_version

Edit version

4 years agochange the version
paladz [Mon, 22 Apr 2019 06:15:55 +0000 (14:15 +0800)]
change the version

4 years agoadd relese note and check point for v1.0.9 (#1728)
Paladz [Mon, 22 Apr 2019 05:27:18 +0000 (13:27 +0800)]
add relese note and check point for v1.0.9 (#1728)

4 years agoFix mined block broadcast err (#1726)
yahtoo [Mon, 22 Apr 2019 04:57:42 +0000 (12:57 +0800)]
Fix mined block broadcast err (#1726)

4 years agoupdate dashbaord (#1727)
Zhiting Lin [Mon, 22 Apr 2019 04:55:36 +0000 (12:55 +0800)]
update dashbaord (#1727)

5 years agoFix banscore string deadlock bug (#1724)
yahtoo [Fri, 19 Apr 2019 10:27:23 +0000 (18:27 +0800)]
Fix banscore string deadlock bug (#1724)

5 years agotest: add test for PR#1708 https://github.com/Bytom/bytom/pull/1708 (#1723)
HAOYUatHZ [Fri, 19 Apr 2019 09:34:43 +0000 (17:34 +0800)]
test: add test for PR#1708 https://github.com/Bytom/bytom/pull/1708 (#1723)

5 years ago Add LAN discover cli config option (#1712)
yahtoo [Thu, 18 Apr 2019 09:33:30 +0000 (17:33 +0800)]
 Add LAN discover cli config option (#1712)

* Add LAN discover cli config option

* Fix test file error

* Fix review bug

5 years agofix the rescan bug (#1708)
Paladz [Thu, 18 Apr 2019 05:22:53 +0000 (13:22 +0800)]
fix the rescan bug (#1708)

5 years agoFix list-assets vm_version field lost (#1705)
yahtoo [Wed, 17 Apr 2019 14:49:53 +0000 (22:49 +0800)]
Fix list-assets vm_version field lost (#1705)

* Fix list-assets vm_version field lost

* Add err check

* Opz code

5 years agodelete duplicate seed (#1704)
oysheng [Wed, 17 Apr 2019 08:31:07 +0000 (16:31 +0800)]
delete duplicate seed (#1704)

5 years agofix query transactions error (#1703)
oysheng [Wed, 17 Apr 2019 08:30:22 +0000 (16:30 +0800)]
fix query transactions error (#1703)

* fix query transactions error

* optimise

5 years agoadd the comma display in number. (#1701)
Zhiting Lin [Wed, 17 Apr 2019 03:12:21 +0000 (11:12 +0800)]
add the comma display in number. (#1701)

5 years agoupdate dashboard bimp002 (#1700)
Zhiting Lin [Tue, 16 Apr 2019 11:12:27 +0000 (19:12 +0800)]
update dashboard bimp002 (#1700)

5 years agofeat: support global tx in api.listTransactions and api.getTransaction (#1694)
HAOYUatHZ [Tue, 16 Apr 2019 08:52:38 +0000 (16:52 +0800)]
feat: support global tx in api.listTransactions and api.getTransaction (#1694)

* feat: add wallet.SaveGlobalTxIdxFlag

* feat: add  blockHash, position, err := parseGlobalTxIdx(string(globalTxIdx))

* feat: implement parseGlobalTxIdx

* wip

* fix: fix calcGlobalTxIndex()

* feat: support getGlobalTxByTxID() in GetTransactionByTxID()

* refactor: rename save_global_tx_index

* refactor: use encoding/binary for position in txIndex

* feat: use wallet.TxIndexFlag to control GetTransactionByTxID flow

* refactor: wrap txIndexFlag inside NewWallet()

* fix: fix wallet_test_util

* refactor: reduce globalTxIdx space by using bytes directly

5 years agoAdd timestamp as random number generator seed (#1698)
yahtoo [Tue, 16 Apr 2019 08:31:15 +0000 (16:31 +0800)]
Add timestamp as random number generator seed (#1698)

5 years agoadjust to the position of estimate transaction gas file and add illustration for...
oysheng [Tue, 16 Apr 2019 07:43:11 +0000 (15:43 +0800)]
adjust to the position of estimate transaction gas file and add illustration for vm gas (#1697)

* adjust to file position

* add document

5 years agomodify estimate gas for issue input (#1696)
oysheng [Tue, 16 Apr 2019 06:25:18 +0000 (14:25 +0800)]
modify estimate gas for issue input  (#1696)

* estimate gas add issue input

* optimise storage size

* unit test

5 years agoUpnp add error handlers (#1695)
yahtoo [Tue, 16 Apr 2019 06:19:04 +0000 (14:19 +0800)]
Upnp add error handlers (#1695)

5 years agoSmall translation improvements during BM error reporting (#1693)
Dimitris Sfounis [Tue, 16 Apr 2019 05:51:51 +0000 (08:51 +0300)]
Small translation improvements during BM error reporting (#1693)

* Small translation improvement in error-reporting

* Small translation improvement in error-reporting, part two

5 years agougly transaction test (#1692)
muscle_boy [Mon, 15 Apr 2019 10:16:22 +0000 (18:16 +0800)]
ugly transaction test (#1692)

* ugly transaction test

* fix bug

* fix bug

5 years agoSupport mDNS LAN peer discover (#1687)
yahtoo [Mon, 15 Apr 2019 08:57:09 +0000 (16:57 +0800)]
Support mDNS LAN peer discover (#1687)

* mv kad discover module to dht

* Add mdns function

* Add lan peer discover func

* Del unused files

* Add lib

* add test info

* Add debug info

* opz code format

* Add LAN peer field

* Del unused files

* Fix lib dependency error

* Change bestPeer logic preferred LAN peer

* Fix test file error

* Del unused file

* Del unused files

* del debug print

* Fix review bug

* change zeroconf lib directory

github.com/zeroconf->github.com/grandcat/zeroconf

* Fix review bugs

* Fix review bugs

* Fix review bugs

5 years agoprecisely estimate gas for standard transaction (#1688)
oysheng [Mon, 15 Apr 2019 08:54:42 +0000 (16:54 +0800)]
precisely estimate gas for standard transaction (#1688)

* opitmise estimate tranasction gas

* modify arguments

* delete rounding calculation

* adjust to the flexible gas

* add unit test

* optimise

* optimise code

* precise calculate tx size

* modify code style

* swap

* swap optimise

5 years agomodify annotated asset signer (#1686)
oysheng [Wed, 10 Apr 2019 09:00:23 +0000 (17:00 +0800)]
modify annotated asset signer (#1686)

* modify annotated asset signer

* optimise

5 years agofix the issue 1584 (#1685)
Paladz [Wed, 10 Apr 2019 03:25:04 +0000 (11:25 +0800)]
fix the issue 1584 (#1685)

5 years agoadd unit test (#1683)
oysheng [Wed, 10 Apr 2019 01:35:18 +0000 (09:35 +0800)]
add unit test (#1683)

5 years agolist assets response with annotated asset (#1682)
oysheng [Tue, 9 Apr 2019 11:13:07 +0000 (19:13 +0800)]
list assets response with annotated asset (#1682)

* list assets response with annotated asset

* optimise

* optimise

5 years agoadd limit block height for create asset (#1680)
oysheng [Tue, 9 Apr 2019 06:23:46 +0000 (14:23 +0800)]
add limit block height for create asset  (#1680)

* add limit block height for create asset

* add unit test

5 years agoSupport custom node alias (#1677)
yahtoo [Mon, 8 Apr 2019 07:35:11 +0000 (15:35 +0800)]
Support custom node alias (#1677)

* Support custom node alias

* fix review bug

5 years agofix: fix typo (#1674)
HAOYUatHZ [Mon, 8 Apr 2019 01:37:57 +0000 (09:37 +0800)]
fix: fix typo (#1674)

5 years agoFix p2p module test file error (#1670)
yahtoo [Thu, 4 Apr 2019 08:17:55 +0000 (16:17 +0800)]
Fix p2p module test file error (#1670)

5 years agoreplace goleveldb with tendermint db (#1660)
muscle_boy [Fri, 29 Mar 2019 09:01:29 +0000 (17:01 +0800)]
replace goleveldb with tendermint db (#1660)

* replace goleveldb with tendermint db

* format code

* remove goleveldb

* recover goleveldb

* move db package

* fix ci

* recover .db

* bug fix

* bug fix

5 years agoadd hash160 test (#1665)
Chengcheng Zhang [Fri, 29 Mar 2019 08:51:28 +0000 (16:51 +0800)]
add hash160 test (#1665)

5 years ago refactor: split ensureOutboundPeers (#1662)
HAOYUatHZ [Fri, 29 Mar 2019 08:40:17 +0000 (16:40 +0800)]
 refactor: split ensureOutboundPeers (#1662)

* feat(model): add cmd option for p2p keep_connect & white_list

* feat: init keep_connect & inbound_white_list params for p2p config

* doc: improve cmdline help message

* fix: remove port in whitelist

* feat: allow whitelist inbound connection

* feat: impl try_connect

* fix: fix numToDial check

* refactor: remove white_list

* refactor: rename keep_connect

* refactor: decomposire

* fix: fix potential nil pointer in ensureOutboundPeers()

* doc: change func name to StrsToNodes

* refactor: split ensureOutboundPeers

* refactor: use NewNetAddressStrings()

* refactor: make logic cleaner

* refactor: remove peers stats in ensureKeepConnectPeers()

* fix: fix read cmd args err

* doc: add log for ensureKeepConnectPeers()

* doc: remove hardcoded logmodule

* doc: add logmodule in netutil package

5 years agoAdd block index test cases (#1661)
yahtoo [Fri, 29 Mar 2019 04:23:39 +0000 (12:23 +0800)]
Add block index test cases (#1661)

* Add TestSetMainChainExtendCap test case
`

* Add TestNewBlockNode test case

* fix review error

5 years agocheck the dust transaction with output amount is zero (#1659)
oysheng [Fri, 29 Mar 2019 03:20:45 +0000 (11:20 +0800)]
check the dust transaction with output amount is zero (#1659)

* check the dust transaction with output amount is zero

* optimise

* refactor

5 years agoadd wallet version check & globalTxIdx (#1657)
HAOYUatHZ [Wed, 27 Mar 2019 07:08:31 +0000 (15:08 +0800)]
add wallet version check & globalTxIdx (#1657)

* feat: add current wallet version check

* feat: save globalTxIdx

* refactor: clean up

* test: add wallet txID check

* test: add genesisTx in wallet test

* refactor: adjust calcGlobalTxIndex format

* refactor: change date type for wallet version

* test: fix attach block in wallet_test

* refactor: fix https://github.com/Bytom/bytom/pull/1657/files#r269394040

* fix: move json.unmarshal form check_walletinfo to load_wallet

* fix: fix wallet version check test

* refactor: clean

* feat: add w.GetGlobalTxIdxes()

* test: add globalTxIdx comparasion

* refactor: clean up

* refactor: clean

* refactor: change bh type to pointer

* refactor: use nil txPool for TestWalletVersion

* refactor: use nil for unnecessary wallet params

5 years ago Change get external ip method (#1649)
yahtoo [Wed, 27 Mar 2019 03:19:36 +0000 (11:19 +0800)]
 Change get external ip method (#1649)

* Change get external ip method

* Add test info

* opz code format

* Opz address display

* Fix review bug

* Change cmn.PanicCrisis to log.Panic

5 years agoadd edge test for CalcReorganizeNodes (#1654)
oysheng [Tue, 26 Mar 2019 12:50:39 +0000 (20:50 +0800)]
add edge test for CalcReorganizeNodes  (#1654)

* add edge test for CalcReorganizeNodes

* optimise

* optimise

5 years agoFix timer not stoped bug (#1653)
yahtoo [Tue, 26 Mar 2019 06:22:33 +0000 (14:22 +0800)]
Fix timer not stoped bug (#1653)