OSDN Git Service

bytom/bytom.git
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 #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

5 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

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

5 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

5 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

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

5 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)

5 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)

5 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

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

5 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)

5 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)

5 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)

5 years agoadd Marshal and Unmarshal test for BlockHeader (#1652)
oysheng [Tue, 26 Mar 2019 02:14:05 +0000 (10:14 +0800)]
add Marshal and Unmarshal test for BlockHeader (#1652)

5 years agoadd serialize tx test (#1651)
muscle_boy [Mon, 25 Mar 2019 10:00:32 +0000 (18:00 +0800)]
add serialize tx test (#1651)

* add serialize tx test

* format code

5 years agoAdd edge test for GasState (#1647)
yahtoo [Fri, 22 Mar 2019 03:19:20 +0000 (11:19 +0800)]
Add edge test for GasState (#1647)

5 years agoadd edge test for CalcWork (#1643)
oysheng [Wed, 20 Mar 2019 10:28:17 +0000 (18:28 +0800)]
add edge test for CalcWork (#1643)

* add edge test for CalcWork

* optimise

* optimise test

5 years agofix coinbase fee bug (#1642)
Chengcheng Zhang [Tue, 19 Mar 2019 09:43:34 +0000 (17:43 +0800)]
fix coinbase fee bug (#1642)

* fix coinbase fee bug

* update

* update

5 years agoadd edge test for TestCalcNextRequiredDifficulty (#1639)
oysheng [Tue, 19 Mar 2019 05:57:08 +0000 (13:57 +0800)]
add edge test for TestCalcNextRequiredDifficulty  (#1639)

* add edge test for TestCalcNextRequiredDifficulty

* optimise

* adjust code style

* optimise

5 years agoFix cast 19-digit uint64 to float64 precision loss (#1640)
yahtoo [Tue, 19 Mar 2019 05:52:29 +0000 (13:52 +0800)]
Fix cast 19-digit uint64 to float64 precision loss (#1640)

var a uint64 = 18446744073709551615
float64(a) = 1.8446744073709552e+19
the precision of the last 2 digits is lost

5 years agofix version ci (#1641)
muscle_boy [Tue, 19 Mar 2019 05:45:00 +0000 (13:45 +0800)]
fix version ci (#1641)

* fix version ci

* fix version ci

* format code

5 years agoadd test case (#1636)
muscle_boy [Wed, 13 Mar 2019 12:07:41 +0000 (20:07 +0800)]
add test case (#1636)

5 years agoadd segwit test (#1633)
muscle_boy [Tue, 12 Mar 2019 08:42:25 +0000 (16:42 +0800)]
add segwit test (#1633)

* add segwit test

* format code

5 years agoadd store test (#1632)
muscle_boy [Tue, 12 Mar 2019 08:07:51 +0000 (16:07 +0800)]
add store test (#1632)

* add store test

* add store test

* add store test

* add store test

5 years agoMerge pull request #1629 from Bytom/entry_test
Paladz [Fri, 8 Mar 2019 06:36:02 +0000 (14:36 +0800)]
Merge pull request #1629 from Bytom/entry_test

entryID test

5 years agoentryID test
shenao78 [Fri, 8 Mar 2019 06:27:48 +0000 (14:27 +0800)]
entryID test

5 years agoadd 1.0.8 release note (#1623)
Paladz [Mon, 4 Mar 2019 07:20:35 +0000 (15:20 +0800)]
add 1.0.8 release note (#1623)

5 years agoupdate QrCode Error correction level. (#1622)
Zhiting Lin [Mon, 4 Mar 2019 06:15:01 +0000 (14:15 +0800)]
update QrCode Error correction level. (#1622)

5 years agoadd check point (#1621)
Paladz [Mon, 4 Mar 2019 03:42:42 +0000 (11:42 +0800)]
add check point (#1621)

5 years agoadd unit test for validate tx (#1620)
muscle_boy [Mon, 4 Mar 2019 03:24:44 +0000 (11:24 +0800)]
add unit test for validate tx (#1620)

* add unit test for validate tx

* add unit test for validate tx

* modify function namej

* format code

* format code

5 years agochange the version (#1618)
Paladz [Sat, 2 Mar 2019 11:22:39 +0000 (19:22 +0800)]
change the version (#1618)

5 years agoAdd case test for the thaintrading (#1617)
wz [Sat, 2 Mar 2019 11:12:23 +0000 (19:12 +0800)]
Add case test for the thaintrading (#1617)

5 years agofix the change db wallet crash case (#1615)
Paladz [Sat, 2 Mar 2019 10:12:22 +0000 (18:12 +0800)]
fix the change db wallet crash case (#1615)

* fix the change db wallet crash case

* add log

5 years agoadd test case for not btm (#1616)
wz [Sat, 2 Mar 2019 09:52:33 +0000 (17:52 +0800)]
add test case for not btm (#1616)

5 years agoRevert delete node info DefaultServices init (#1614)
yahtoo [Sat, 2 Mar 2019 07:42:35 +0000 (15:42 +0800)]
Revert delete node info DefaultServices init (#1614)

5 years agoadd case of detach and attach block for normal tx (#1613)
wz [Sat, 2 Mar 2019 07:37:29 +0000 (15:37 +0800)]
add case of detach and attach block for normal tx (#1613)

* add case of detach and attach block for normal tx

* modify hash value

5 years agoMerge pull request #1612 from Bytom/pprof
Paladz [Sat, 2 Mar 2019 06:17:37 +0000 (14:17 +0800)]
Merge pull request #1612 from Bytom/pprof

Revert pprof func

5 years agoRevert del pprof func
Yahtoo Ma [Sat, 2 Mar 2019 06:10:51 +0000 (14:10 +0800)]
Revert del pprof func

5 years agoDev utxo unit test (#1606)
wz [Sat, 2 Mar 2019 03:23:31 +0000 (11:23 +0800)]
Dev utxo unit test (#1606)

* add a unit test for attacBlocks of utxoview

* modify  unit test for attacBlocks of utxoview

* recovery test file

* delete code

* Add attach block list

* add init transaction and block

* modify code format

* add error deal

5 years agoMempool: add no btm input tx filter (#1605)
yahtoo [Fri, 1 Mar 2019 14:35:50 +0000 (22:35 +0800)]
Mempool: add no btm input tx filter (#1605)

* Mempool: add no btm input tx filter

* Fix review error

* Fix review error

* Fix review error

* Fix review error

* Fix review error

* Add test case

5 years agoedit log (#1609)
Paladz [Fri, 1 Mar 2019 12:39:27 +0000 (20:39 +0800)]
edit log (#1609)

5 years agocompletion block test (#1603)
muscle_boy [Fri, 1 Mar 2019 08:05:10 +0000 (16:05 +0800)]
completion block test (#1603)

* completion block test

* attach tapd id for unit test

* attach sequence num for unit test

* fix checkblocktime test

5 years agoMerge pull request #1608 from Bytom/tx_unit_test
Paladz [Fri, 1 Mar 2019 07:50:24 +0000 (15:50 +0800)]
Merge pull request #1608 from Bytom/tx_unit_test

add tx unit test

5 years agoadd tx unit test
shenao78 [Fri, 1 Mar 2019 07:26:14 +0000 (15:26 +0800)]
add tx unit test

5 years agoMerge pull request #1602 from Bytom/dashboard
Paladz [Fri, 1 Mar 2019 06:39:42 +0000 (14:39 +0800)]
Merge pull request #1602 from Bytom/dashboard

update dashboard with qr code.

5 years agoupdate the dashboard with signature Qr code.
Zhiting Lin [Fri, 1 Mar 2019 06:36:35 +0000 (14:36 +0800)]
update the dashboard with signature Qr code.