OSDN Git Service
paladz [Fri, 13 Apr 2018 13:28:13 +0000 (21:28 +0800)]
edit for fix unit test
paladz [Fri, 13 Apr 2018 13:16:28 +0000 (21:16 +0800)]
add unit test for block header
paladz [Fri, 13 Apr 2018 11:49:40 +0000 (19:49 +0800)]
add cache for tensority
Paladz [Fri, 13 Apr 2018 06:30:34 +0000 (14:30 +0800)]
Merge pull request #629 from Bytom/unit_test
add unit test for calcReorganizeNodes
paladz [Fri, 13 Apr 2018 05:30:49 +0000 (13:30 +0800)]
rename the variable
paladz [Fri, 13 Apr 2018 05:21:50 +0000 (13:21 +0800)]
add unit test for calcReorganizeNodes
Paladz [Fri, 13 Apr 2018 01:22:39 +0000 (09:22 +0800)]
Merge pull request #624 from Bytom/test-add-invalid-tx-to-txpool
test add invalid tx to txpool
Paladz [Thu, 12 Apr 2018 12:29:45 +0000 (20:29 +0800)]
Merge pull request #618 from Bytom/fix_bug
Closes #604
paladz [Thu, 12 Apr 2018 12:27:44 +0000 (20:27 +0800)]
Closes #604
HAOYUatHZ [Thu, 12 Apr 2018 11:51:46 +0000 (19:51 +0800)]
Change files name in tensority package. (#614)
* change files name
* Update .gitignore
* change files name
* update echo for make
Yongfeng LI [Thu, 12 Apr 2018 11:04:50 +0000 (19:04 +0800)]
update dashboard (#613)
lbqds [Thu, 12 Apr 2018 10:24:01 +0000 (18:24 +0800)]
test add invalid tx to txpool
Yongfeng LI [Thu, 12 Apr 2018 09:10:29 +0000 (17:10 +0800)]
add omitempty for AssetDefinition (#610)
WangYifu [Thu, 12 Apr 2018 09:02:59 +0000 (04:02 -0500)]
Bytomcli control account (#609)
* remove control account
* fix cli sign-submit-transaction
HAOYUatHZ [Thu, 12 Apr 2018 08:51:14 +0000 (16:51 +0800)]
temporary fix for make clean (#608)
Paladz [Thu, 12 Apr 2018 06:46:55 +0000 (14:46 +0800)]
fix bug for err tx should not goes into txpool (#605)
Yongfeng LI [Thu, 12 Apr 2018 06:39:48 +0000 (14:39 +0800)]
Fix sign api (#603)
* return error when sign-submit-transaction has no sign
* upgrade version
* correct the way to check sign
* Revert "correct the way to check sign"
This reverts commit
04484a82a540bf705a9ebecc8f1cdb373f98e801.
* fix the way to check sign
yahtoo [Thu, 12 Apr 2018 03:27:16 +0000 (11:27 +0800)]
Change testnet seed peer (#602)
Yongfeng LI [Thu, 12 Apr 2018 03:26:33 +0000 (11:26 +0800)]
remove CtrlProgram#Change and accountOutput#change (#600)
yahtoo [Thu, 12 Apr 2018 03:07:22 +0000 (11:07 +0800)]
Fix p2p peer duplicate dail error (#599)
* Fix p2p peer duplicate connection error
* Optimization debug log print
WangYifu [Thu, 12 Apr 2018 01:54:39 +0000 (20:54 -0500)]
Functional tests (#543)
* add integration test
* tiny refactor
* add chain tests
* update wallet tests
* add wallet rollback test
* mock utxo, create asset, account
* fix can't find btm asset
* fix verify control program failed
* add tx tests
* tx test, output large than input
* add gas used test
* validate tx when gen block
* add tx version tests
* add gas only tx, spend immature coinbase output tests
* add block header tests
* spent retire, insufficient assets tests
* add coinbase tx test
* golint
* add double spend tests
* tx have no outputs test
* chain fork tests
* GenerateGenesisBlock for tests
* separate unit tests and functional tests
* update status with ProcessBlock
* fix tests
* gofmt
* add tx pool tests
* simplify code
* fix typo
* add max block gas test
* remove useless code
* fix chain tests
* serialize tx manually
* remove mux vm verify
* tmp save
* change the code style
* edit code format
* rename the file
* mv validate block to right folder
* delete unused from validation package
* add unit test for checkBlockTime && checkCoinbaseAmount
* delete unused test_file
* update the blockindex import
* fix tests
* format protocol level
* fix for golint
* edit for fix bug
* fix chain rollback tests
Yongfeng LI [Wed, 11 Apr 2018 13:48:04 +0000 (21:48 +0800)]
set password and show tx output address (#591)
* simplify sign-submit-transaction parameters
* add address to list-transactions output
* add address to transaction inputs
* update dashboard
* correct address for tx inputs and outputs
* remove useless code to get address from db
Paladz [Wed, 11 Apr 2018 13:12:48 +0000 (21:12 +0800)]
Frozen vm (#577)
* remove mux vm verify
* tmp save
* change the code style
* edit code format
* rename the file
* mv validate block to right folder
* delete unused from validation package
* add unit test for checkBlockTime && checkCoinbaseAmount
* delete unused test_file
* update the blockindex import
* format protocol level
* fix for golint
* edit for fix bug
HAOYUatHZ [Wed, 11 Apr 2018 13:06:43 +0000 (21:06 +0800)]
fix Makefile (#586)
wz [Wed, 11 Apr 2018 08:35:29 +0000 (16:35 +0800)]
Optimized mining api (#585)
yahtoo [Wed, 11 Apr 2018 07:46:41 +0000 (15:46 +0800)]
Broadcast new status when sync complete (#583)
* Broadcast new status when sync complete
* Fix peerset access thread safety bug
Yongfeng LI [Wed, 11 Apr 2018 07:33:24 +0000 (15:33 +0800)]
Merge pull request #582 from Bytom/dev_mining_api
add mining api
wz [Wed, 11 Apr 2018 03:17:56 +0000 (11:17 +0800)]
add mining api
Yongfeng LI [Wed, 11 Apr 2018 03:24:26 +0000 (11:24 +0800)]
Merge pull request #581 from Bytom/control-account
remove control_account action
Yongfeng LI [Wed, 11 Apr 2018 03:16:30 +0000 (11:16 +0800)]
remove control_account action
yahtoo [Tue, 10 Apr 2018 14:06:11 +0000 (22:06 +0800)]
Fix check network type bug (#578)
* Fix check network type bug
* Del useless code
Yongfeng LI [Tue, 10 Apr 2018 11:03:51 +0000 (19:03 +0800)]
Merge pull request #576 from Bytom/config
remove useless configuration
Yongfeng LI [Tue, 10 Apr 2018 10:16:40 +0000 (18:16 +0800)]
remove useless configuration
Paladz [Tue, 10 Apr 2018 09:53:49 +0000 (17:53 +0800)]
fix submit block on same height bug (#575)
Paladz [Tue, 10 Apr 2018 09:35:49 +0000 (17:35 +0800)]
change the config for test net (#573)
Yongfeng LI [Tue, 10 Apr 2018 08:24:55 +0000 (16:24 +0800)]
Merge pull request #572 from Bytom/list-addresses
show addresses on account detail page
Yongfeng LI [Tue, 10 Apr 2018 08:14:20 +0000 (16:14 +0800)]
show addresses on account detail page
Paladz [Tue, 10 Apr 2018 07:04:53 +0000 (15:04 +0800)]
fix the bug (#570)
Yongfeng LI [Tue, 10 Apr 2018 05:52:58 +0000 (13:52 +0800)]
Merge pull request #568 from Bytom/edit_version
update verion
paladz [Tue, 10 Apr 2018 05:51:47 +0000 (13:51 +0800)]
update verion
Paladz [Tue, 10 Apr 2018 05:22:03 +0000 (13:22 +0800)]
fix coinbase tx lens bug (#567)
Yongfeng LI [Tue, 10 Apr 2018 02:58:12 +0000 (10:58 +0800)]
update version (#565)
Paladz [Tue, 10 Apr 2018 02:48:36 +0000 (10:48 +0800)]
fix the tx size bug (#563)
* fix the tx size bug
* fix small garmmar
Paladz [Mon, 9 Apr 2018 11:26:16 +0000 (19:26 +0800)]
prevent tx size is 0 (#562)
* prevent tx size is 0
* make unit test pass
Yongfeng LI [Mon, 9 Apr 2018 09:09:53 +0000 (17:09 +0800)]
Merge pull request #561 from Bytom/p2p-bug
fix stop peer when request block failed
Yongfeng LI [Mon, 9 Apr 2018 08:40:50 +0000 (16:40 +0800)]
fix stop peer when request block failed
Yongfeng LI [Mon, 9 Apr 2018 07:49:46 +0000 (15:49 +0800)]
fix SyncManager Peer and Switch peer not match (#560)
Paladz [Mon, 9 Apr 2018 07:01:39 +0000 (15:01 +0800)]
fix the store block header index bug (#559)
Paladz [Mon, 9 Apr 2018 06:15:05 +0000 (14:15 +0800)]
Frozen bc (#552)
* first step clean the nonce
* clean the map.go
* clean the data from bc.go
* finish clean the data from bc level
* add unit test for map
* add comment for golint
HAOYUatHZ [Mon, 9 Apr 2018 05:07:34 +0000 (13:07 +0800)]
chmod -x for source files (#557)
keep `x` for `.pl`, `.sh`, `.bash` and `.git/hooks/*.sample`
```
find . -type f -perm -111
find . -name "*.go" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.s" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.h" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.c" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.f" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.f90" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.json.deflate" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.dat" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.txt" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.md" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.html" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.xml" -type f -perm -111 -exec chmod -x {} \;
find . -name "Makefile" -type f -perm -111 -exec chmod -x {} \;
find . -name "Dockerfile" -type f -perm -111 -exec chmod -x {} \;
find . -name "README" -type f -perm -111 -exec chmod -x {} \;
find . -name "AUTHORS" -type f -perm -111 -exec chmod -x {} \;
find . -name "LICENSE" -type f -perm -111 -exec chmod -x {} \;
find . -name "PATENTS" -type f -perm -111 -exec chmod -x {} \;
find . -name "CONTRIBUTORS" -type f -perm -111 -exec chmod -x {} \;
find . -name "AUTHORS" -type f -perm -111 -exec chmod -x {} \;
find . -name ".gitignore" -type f -perm -111 -exec chmod -x {} \;
find . -name ".gitattributes" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.gz" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.cfg" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.pem" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.key" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.srl" -type f -perm -111 -exec chmod -x {} \;
find . -name "*.crt" -type f -perm -111 -exec chmod -x {} \;
```
Yongfeng LI [Mon, 9 Apr 2018 05:02:54 +0000 (13:02 +0800)]
fix keys not update when reloading with some keys deleted (#556)
Yongfeng LI [Sun, 8 Apr 2018 14:24:48 +0000 (22:24 +0800)]
Merge pull request #551 from Bytom/update-readme
fix grammar error. #530
Yongfeng LI [Sun, 8 Apr 2018 14:21:34 +0000 (22:21 +0800)]
Merge pull request #550 from Bytom/fix-maxNonce-comment
fix maxNonce comment
HAOYUatHZ [Sun, 8 Apr 2018 11:37:44 +0000 (19:37 +0800)]
fix grammar error. #530
HAOYUatHZ [Sun, 8 Apr 2018 11:27:33 +0000 (19:27 +0800)]
fix-maxNonce-comment
WangYifu [Sun, 8 Apr 2018 11:07:10 +0000 (06:07 -0500)]
fix get reorganize blocks stuck (#549)
Yongfeng LI [Sun, 8 Apr 2018 09:59:39 +0000 (17:59 +0800)]
Remove unused code (#548)
* remove unused code in accoun and api
* remove unused code in crypto
* remove unused code in asset and protocol
Paladz [Sun, 8 Apr 2018 08:15:38 +0000 (16:15 +0800)]
add logs for debug (#545)
Yongfeng LI [Sun, 8 Apr 2018 07:51:06 +0000 (15:51 +0800)]
Merge pull request #546 from Bytom/gofmt
gofmt source
Yongfeng LI [Sun, 8 Apr 2018 07:44:05 +0000 (15:44 +0800)]
gofmt source
Paladz [Sun, 8 Apr 2018 07:17:26 +0000 (15:17 +0800)]
Block node (#541)
* separate orphan manage from protocol
* savage version of blockIndex
* elegent the blockindex
* eleganet the leveldb part
* make it runable on single node
* pass the make test
* process use channel
* make the connect block safe from async
oysheng [Sun, 8 Apr 2018 06:28:21 +0000 (14:28 +0800)]
fix tx actions only contain spend and will be success (#544)
* fix tx actions only contain spend and tx will be success
* modify func name
Yongfeng LI [Sat, 7 Apr 2018 11:09:25 +0000 (19:09 +0800)]
Merge pull request #542 from Bytom/reverse-tx
reverse result of list-transactions
Yongfeng LI [Sat, 7 Apr 2018 11:00:35 +0000 (19:00 +0800)]
improve the way to reverse transactions
Yongfeng LI [Sat, 7 Apr 2018 10:54:45 +0000 (18:54 +0800)]
reverse result of list-transactions
yahtoo [Sat, 7 Apr 2018 08:05:35 +0000 (16:05 +0800)]
Optimize p2p transfer business layer logic (#501)
* Optimize p2p business layer logic
* Merge dev branch code
* Fix new mined block can't broadcast error
* Remove unused test file
* Del unused parameter
* Add RWMutex
* Add sent message filter
* Fix request block quite bug
* Del unused function BroadcastToPeers
* Fix new peer channel bug
* Del chainHeight from blockKeeper
* Fix sync check logic bug
* Add business protocol handshake
* Del unused code
* Optimize code format
* Del unused function
* Refactor request block by hash/height function
* Refactor tx notify handle
* Refactor BlockRequestWorker to sequential process
* Fix net bestheight error
* Refactor p2p net sync code
* Refactor p2p net sync code
* Refactor BlockRequestWorker of blockkeeper
* ValidateTx return orphan flag
* For p2p transfer test
* For p2p transfer test
* Check exist block whether orphan
* Enable peer exchange function default
* Add txpool sync when new peer connected
* Fix golint check error
* Change mine difficulty
* Fix requst genesis block bug
* Fix address compare function
* Fix blockrequest bug
* Revert "For p2p transfer test"
This reverts commit
e6a36d86d5077f6c520dbfbb6eee2ab4335012e5.
* Fix request block bug
* For test
* Fix code review problem
* Optimize log printing
* Fix ci check error
Yongfeng LI [Fri, 6 Apr 2018 10:08:38 +0000 (18:08 +0800)]
refactor get account utxo api (#538)
Yongfeng LI [Fri, 6 Apr 2018 09:04:28 +0000 (17:04 +0800)]
refactor Wallet#indexTransactions (#537)
Paladz [Fri, 6 Apr 2018 07:16:27 +0000 (15:16 +0800)]
Static types (#529)
* tmp save before change the issuance noce
* work on static issuance stuff
* frozen the txinput
* frozen txout
* ready for unit test
* add unit test for spend
* add unit test for output_commitment
* fix wrong log
* add unit test for txoutput
* add unit test for issuance input
* add unit test for spend input
* add unit test for coinbase
* add unit test for transactino
* delete tx_test.go due to already been handled
* add unit test for block
* fix bug for serialized tx size
* finish the types level test
Yongfeng LI [Fri, 6 Apr 2018 02:38:35 +0000 (10:38 +0800)]
remove controlAction#ReferenceData (#536)
HAOYUatHZ [Thu, 5 Apr 2018 08:17:30 +0000 (16:17 +0800)]
Add test cases and comments for difficulty package. (#535)
* init hash bytes for tests
* fix test case structs
* pass HashToBig
* update format
* update comments for CompactToBig(compact uint64) *big.Int
* pause
* basic test for TestCompactToBig
* pause
* update output format
* update comments
* trying btcd's test cases
* weird
* Add comments for (*Int) Bytes()
* Add test cases for BigToCompact()
* weird
* pause
* Update comments
* Cleaning up. Start to try less shifting.
* Update test cases
* udpate comments
* need to fix types
* fix type
* Add test cases
* Add test cases
* Add test cases and comments.
* formatted & linted
Yongfeng LI [Wed, 4 Apr 2018 08:55:19 +0000 (16:55 +0800)]
update dashboard (#533)
Yongfeng LI [Wed, 4 Apr 2018 06:47:13 +0000 (14:47 +0800)]
Merge pull request #532 from Bytom/import-key-progress
fix key import progress
Yongfeng LI [Wed, 4 Apr 2018 06:34:34 +0000 (14:34 +0800)]
fix key import progress
wz [Tue, 3 Apr 2018 13:17:23 +0000 (21:17 +0800)]
fix asset alias for upper (#528)
Yongfeng LI [Tue, 3 Apr 2018 12:24:17 +0000 (20:24 +0800)]
fix AnnotatedOutput#AssetDefinition type (#525)
Yongfeng LI [Tue, 3 Apr 2018 10:58:19 +0000 (18:58 +0800)]
update dashboard (#523)
oysheng [Tue, 3 Apr 2018 08:26:52 +0000 (16:26 +0800)]
add xpubs out of bounds check (#522)
Yongfeng LI [Tue, 3 Apr 2018 03:03:17 +0000 (11:03 +0800)]
only run `make test` in travis ci (#521)
Yongfeng LI [Tue, 3 Apr 2018 02:57:06 +0000 (10:57 +0800)]
fix style with goimports except p2p directory (#520)
Yongfeng LI [Mon, 2 Apr 2018 12:13:33 +0000 (20:13 +0800)]
update version (#516)
oysheng [Mon, 2 Apr 2018 10:45:02 +0000 (18:45 +0800)]
add api handler test and fix walletRedirectHandler (#514)
* add asset unit test: TestUpdateAssetAlias and TestListAssets
* fix walletRedirectHandler because cannot modify req.URL.Path out of http.Handler
add api unit test
* optimse api test
Yongfeng LI [Mon, 2 Apr 2018 09:16:35 +0000 (17:16 +0800)]
fix .travis.yml (#515)
Yongfeng LI [Mon, 2 Apr 2018 06:39:38 +0000 (14:39 +0800)]
fix make release for windows (#512)
Paladz [Mon, 2 Apr 2018 06:06:34 +0000 (14:06 +0800)]
init version for make submit work handle asyn case (#511)
* init version for make submit work handle asyn case
* edit for golint and test
* change the channel size due to code review
Yongfeng LI [Mon, 2 Apr 2018 03:02:12 +0000 (11:02 +0800)]
inline open browser utility method (#510)
oysheng [Sat, 31 Mar 2018 08:27:29 +0000 (16:27 +0800)]
add asset unit test: TestUpdateAssetAlias and TestListAssets (#509)
Yongfeng LI [Sat, 31 Mar 2018 05:45:51 +0000 (13:45 +0800)]
fix dashboard balance keep show loading when account no balance (#508)
Paladz [Sat, 31 Mar 2018 05:00:04 +0000 (13:00 +0800)]
edit api for get-work and submit work (#507)
WangYifu [Fri, 30 Mar 2018 11:58:24 +0000 (19:58 +0800)]
fix ErrLoadKey in multi-sig witness (#506)
oysheng [Fri, 30 Mar 2018 10:51:22 +0000 (18:51 +0800)]
add rpc test (#503)
* add rpc test
delete the no used function NetInfo
* fix BTM format fot transaction request
Yongfeng LI [Fri, 30 Mar 2018 10:14:59 +0000 (18:14 +0800)]
delete tls.go (#504)
Yongfeng LI [Fri, 30 Mar 2018 08:04:23 +0000 (16:04 +0800)]
normalize alias capitalization (#502)
* normalize alias capitalization
* remove ToUpper when compare with BTMAlias
* add test for create asset with alias BTM
* add test for convert alias captalization
Paladz [Fri, 30 Mar 2018 01:58:09 +0000 (09:58 +0800)]
init push for tx status hash use merkle tree (#499)
* init push for tx status hash use merkle tree
* fix for unit test
* merkle tree func use intergace
Yongfeng LI [Wed, 28 Mar 2018 07:36:45 +0000 (15:36 +0800)]
add gzip to API handler (#497)
Yongfeng LI [Wed, 28 Mar 2018 06:13:23 +0000 (14:13 +0800)]
remove wallet from BlockchainReactor (#496)
Yongfeng LI [Wed, 28 Mar 2018 05:58:33 +0000 (13:58 +0800)]
add lock to create-key (#495)
Yongfeng LI [Tue, 27 Mar 2018 07:51:46 +0000 (15:51 +0800)]
fix maxNonce comment (#491)
oysheng [Tue, 27 Mar 2018 07:22:53 +0000 (15:22 +0800)]
fix warning: "http: multiple response.WriteHeader calls" (#490)
Paladz [Tue, 27 Mar 2018 06:52:51 +0000 (14:52 +0800)]
init push for verify seed (#488)