OSDN Git Service

bytom/bytom.git
2 years agofix(bcrp): don't allow overwrite attachEntries map when apply block (#1993)
DeKaiju [Mon, 28 Jun 2021 02:33:06 +0000 (10:33 +0800)]
fix(bcrp): don't allow overwrite attachEntries map when apply block (#1993)

2 years agoapi add irreversible height (#1992)
wyjDoraemon [Fri, 25 Jun 2021 07:27:33 +0000 (15:27 +0800)]
api add irreversible height (#1992)

* api add irreversible height

* opt

Co-authored-by: Paladz <yzhu101@uottawa.ca>
2 years agoapply_vote_to_utxo_view (#1991)
Poseidon [Fri, 25 Jun 2021 07:14:08 +0000 (15:14 +0800)]
apply_vote_to_utxo_view (#1991)

* apply_vote_to_utxo_view

* check zero amount in vote output

2 years agoSmall edit (#1990)
Paladz [Thu, 24 Jun 2021 10:00:36 +0000 (18:00 +0800)]
Small edit (#1990)

* delete code

* fix bug

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agofeat(bcrp): add bcrp test case (#1989)
DeKaiju [Thu, 24 Jun 2021 09:07:55 +0000 (17:07 +0800)]
feat(bcrp): add bcrp test case (#1989)

* feat(bcrp): add bcrp test case

* feat(bcrp): code refactoring

Co-authored-by: Paladz <yzhu101@uottawa.ca>
2 years agoedit dup sup link struct (#1988)
Paladz [Thu, 24 Jun 2021 04:24:05 +0000 (12:24 +0800)]
edit dup sup link struct (#1988)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agoCasper config (#1986)
Poseidon [Thu, 24 Jun 2021 02:53:50 +0000 (10:53 +0800)]
Casper config (#1986)

* casper config

* casper config

* revert dashboard

Co-authored-by: Paladz <yzhu101@uottawa.ca>
2 years agochange go mod (#1987)
xuexiansong [Thu, 24 Jun 2021 02:45:00 +0000 (10:45 +0800)]
change go mod (#1987)

* change go mod

* change go mod

* change go sum

2 years agofix register contract (#1985)
Paladz [Wed, 23 Jun 2021 11:56:42 +0000 (19:56 +0800)]
fix register contract (#1985)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agoupdate dashboard (#1984)
岛书 [Wed, 23 Jun 2021 10:06:43 +0000 (18:06 +0800)]
update dashboard (#1984)

2 years agoedit code for elegant (#1983)
Paladz [Wed, 23 Jun 2021 08:08:15 +0000 (16:08 +0800)]
edit code for elegant (#1983)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agoedit for elegant (#1982)
Paladz [Tue, 22 Jun 2021 01:21:10 +0000 (09:21 +0800)]
edit for elegant (#1982)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agoremove pop_int64 (#1981)
Paladz [Mon, 21 Jun 2021 02:09:28 +0000 (10:09 +0800)]
remove pop_int64 (#1981)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agoremove_process_block_lock (#1980)
Poseidon [Fri, 18 Jun 2021 09:52:45 +0000 (17:52 +0800)]
remove_process_block_lock (#1980)

2 years agoremove finalized block header (#1979)
Poseidon [Fri, 18 Jun 2021 09:45:44 +0000 (17:45 +0800)]
remove finalized block header (#1979)

2 years agoremove block index struct (#1977)
wyjDoraemon [Fri, 18 Jun 2021 08:33:50 +0000 (16:33 +0800)]
remove block index struct (#1977)

* remove block index struct

* ci ci

2 years agoremove chain block index (#1976)
wyjDoraemon [Fri, 18 Jun 2021 07:09:08 +0000 (15:09 +0800)]
remove chain block index (#1976)

Co-authored-by: Paladz <yzhu101@uottawa.ca>
2 years agoremove uint64 (#1974)
Paladz [Fri, 18 Jun 2021 06:14:12 +0000 (14:14 +0800)]
remove uint64 (#1974)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agosave chain status (#1975)
wyjDoraemon [Fri, 18 Jun 2021 05:58:13 +0000 (13:58 +0800)]
save chain status (#1975)

2 years agoremove push int64 (#1972)
Paladz [Fri, 18 Jun 2021 01:22:06 +0000 (09:22 +0800)]
remove push int64 (#1972)

* remove push int64

* edit opCheckPredicate

* Revert "edit opCheckPredicate"

This reverts commit d28e17d2e2e123477a2452b182af8d9f11bc2cf4.

* edit the vm

* fix ci

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agodelete chain best node (#1973)
wyjDoraemon [Thu, 17 Jun 2021 14:04:46 +0000 (22:04 +0800)]
delete chain best node (#1973)

* delete chain best node

* fix

2 years agoprepare to replace block index (#1969)
wyjDoraemon [Thu, 17 Jun 2021 11:13:21 +0000 (19:13 +0800)]
prepare to replace block index (#1969)

* prepare to replace block index

* fix

* fix

* fix ci

Co-authored-by: Paladz <yzhu101@uottawa.ca>
2 years agoedit neg op (#1971)
Paladz [Thu, 17 Jun 2021 11:07:27 +0000 (19:07 +0800)]
edit neg op (#1971)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agoauth_verification_test (#1970)
Poseidon [Thu, 17 Jun 2021 09:49:58 +0000 (17:49 +0800)]
auth_verification_test (#1970)

* auth_verification_test

* add rollback test

2 years agoedit the code little bit (#1967)
Paladz [Wed, 16 Jun 2021 10:25:52 +0000 (18:25 +0800)]
edit the code little bit (#1967)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agoedht tx txoutput (#1966)
Paladz [Wed, 16 Jun 2021 06:56:44 +0000 (14:56 +0800)]
edht tx txoutput (#1966)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agofix_duplicate_checkpoint (#1965)
Poseidon [Wed, 16 Jun 2021 06:36:36 +0000 (14:36 +0800)]
fix_duplicate_checkpoint (#1965)

* fix_duplicate_checkpoint

* simplify code

* fix ci

2 years agoremove statue data struct (#1964)
Paladz [Tue, 15 Jun 2021 11:50:42 +0000 (19:50 +0800)]
remove statue data struct (#1964)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agoremove status fail (#1963)
Paladz [Tue, 15 Jun 2021 07:38:17 +0000 (15:38 +0800)]
remove status fail (#1963)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agofix pos reward coinbase output[0] bug (#1962)
wyjDoraemon [Tue, 15 Jun 2021 06:34:33 +0000 (14:34 +0800)]
fix pos reward coinbase output[0] bug (#1962)

* fix pos reward coinbase output[0] bug

* opt code

* add return

* fix

Co-authored-by: Paladz <yzhu101@uottawa.ca>
2 years agoedit types (#1961)
Paladz [Fri, 11 Jun 2021 02:15:24 +0000 (10:15 +0800)]
edit types (#1961)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agodelete useless code (#1960)
wyjDoraemon [Thu, 10 Jun 2021 07:52:52 +0000 (15:52 +0800)]
delete useless code (#1960)

Co-authored-by: Paladz <yzhu101@uottawa.ca>
2 years agocoinbase reward (#1948)
wyjDoraemon [Thu, 10 Jun 2021 06:41:28 +0000 (14:41 +0800)]
coinbase reward (#1948)

* coinbase reward

* fix test case

* fix transaction test

* delete unuseful code

* delete debug code

* fix ci

Co-authored-by: Paladz <yzhu101@uottawa.ca>
2 years agobest chain test (#1959)
Poseidon [Thu, 10 Jun 2021 06:16:00 +0000 (14:16 +0800)]
best chain test (#1959)

Co-authored-by: Paladz <yzhu101@uottawa.ca>
2 years agoedit issuance (#1958)
Paladz [Thu, 10 Jun 2021 05:29:35 +0000 (13:29 +0800)]
edit issuance (#1958)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agoedit tx input (#1957)
Paladz [Thu, 10 Jun 2021 01:46:25 +0000 (09:46 +0800)]
edit tx input (#1957)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agobuild vote tx (#1955)
Poseidon [Wed, 9 Jun 2021 09:17:31 +0000 (17:17 +0800)]
build vote tx (#1955)

* build vote tx

* rerun ci

* fix ci

* fix ci

* fix ci

* fix ci

Co-authored-by: Paladz <yzhu101@uottawa.ca>
2 years agoopen_gas_stand_tx_limit (#1953)
Paladz [Wed, 9 Jun 2021 05:56:16 +0000 (13:56 +0800)]
open_gas_stand_tx_limit (#1953)

* open_gas_stand_tx_limit

* edit the error name

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agorefine_casper_code (#1954)
Poseidon [Wed, 9 Jun 2021 02:09:58 +0000 (10:09 +0800)]
refine_casper_code (#1954)

* refine_casper_code

* opt code

2 years agofix rollback (#1952)
Poseidon [Tue, 8 Jun 2021 10:43:37 +0000 (18:43 +0800)]
fix rollback (#1952)

* fix rollback

* opt log print

* opt log print

2 years agofix casper rollback (#1951)
Poseidon [Tue, 8 Jun 2021 07:15:42 +0000 (15:15 +0800)]
fix casper rollback (#1951)

* fix casper rollback

* opt code

Co-authored-by: Paladz <yzhu101@uottawa.ca>
2 years agoVm little end (#1949)
xuexiansong [Tue, 8 Jun 2021 05:58:50 +0000 (13:58 +0800)]
Vm little end (#1949)

* change uint256 to little endian

* change test file

* cod format

* change big little end types

* change func name to reverse

* private func

Co-authored-by: Paladz <yzhu101@uottawa.ca>
2 years agoedit the map code (#1950)
Paladz [Tue, 8 Jun 2021 04:11:52 +0000 (12:11 +0800)]
edit the map code (#1950)

Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
2 years agocoinbase reward (#1947)
wyjDoraemon [Fri, 4 Jun 2021 02:18:48 +0000 (10:18 +0800)]
coinbase reward (#1947)

* coinbase reward

* opt code according comment

2 years agofix get block order (#1946)
Poseidon [Thu, 3 Jun 2021 04:09:40 +0000 (12:09 +0800)]
fix get block order (#1946)

* fix get block order

* fix get block order

* fix some bug for casper

* recover block of epoch

* fix auth verification

* no need to justifiying cache

* get target checkpoint from tree

* source checkpoint before the last finalized checkpoint

* add log print

* update func args

* update checkpoint state in memory

2 years agofix_peer_connection (#1944)
Poseidon [Wed, 2 Jun 2021 07:18:52 +0000 (15:18 +0800)]
fix_peer_connection (#1944)

2 years agofix prev checkpoint cache (#1943)
Poseidon [Tue, 1 Jun 2021 08:04:18 +0000 (16:04 +0800)]
fix prev checkpoint cache (#1943)

2 years agofix_calc_coinbase_fee_amount (#1941)
Poseidon [Thu, 27 May 2021 13:45:49 +0000 (21:45 +0800)]
fix_calc_coinbase_fee_amount (#1941)

2 years agorefactor casper (#1940)
Poseidon [Wed, 26 May 2021 06:52:26 +0000 (14:52 +0800)]
refactor casper (#1940)

* refactor casper

* add comment

2 years ago2.0_beta_relese_node (#1939)
Poseidon [Tue, 25 May 2021 06:49:47 +0000 (14:49 +0800)]
2.0_beta_relese_node (#1939)

* 2.0_beta_relese_node

* update version num

* update version num

* add more pr

2 years agoFix casper apply block (#1938)
Poseidon [Mon, 24 May 2021 08:48:24 +0000 (16:48 +0800)]
Fix casper apply block (#1938)

* fix_casper_apply_block

* fix_casper_apply_block

* opt code

2 years agobatch_save_state_and_checkpoints (#1937)
Poseidon [Mon, 24 May 2021 08:01:30 +0000 (16:01 +0800)]
batch_save_state_and_checkpoints (#1937)

* batch_save_state_and_checkpoints

* fix ci

Co-authored-by: Paladz <yzhu101@uottawa.ca>
2 years agoadd_federation (#1936)
Poseidon [Mon, 24 May 2021 07:58:07 +0000 (15:58 +0800)]
add_federation (#1936)

3 years agoperfect_block_proposer (#1935)
Poseidon [Wed, 19 May 2021 10:29:09 +0000 (18:29 +0800)]
perfect_block_proposer (#1935)

* perfect_block_proposer

* remove rubbish file

* solonet normal block

* fix ci

* remove test code

* add coinbase amount

* bug fix

* add fee to coinbase amount

* remove duplicate code

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agovm state data (#1930)
boomyl [Mon, 17 May 2021 07:51:02 +0000 (15:51 +0800)]
vm state data (#1930)

* vm state data

* fix comments:2d bytes compare

* fix altstack copying data

* fix comments

* fix comments

3 years agoadd_new_casper_for_chain (#1931)
Poseidon [Mon, 10 May 2021 08:14:08 +0000 (16:14 +0800)]
add_new_casper_for_chain (#1931)

* add_new_casper_for_chain

* add checkpoint db implemention

* mov casper to protocol package

* remove logs

* remove logs

* remove fmt import

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agoMoidfy api get block (#1932)
hauson [Mon, 10 May 2021 05:42:59 +0000 (13:42 +0800)]
Moidfy api get block (#1932)

* feat(add veto input): add veto input

* feat(moidfy output): modify output

* feat(modify): modify

3 years agofix vote hash with state (#1929) 2.0.0-alpha
boomyl [Fri, 30 Apr 2021 07:39:25 +0000 (15:39 +0800)]
fix vote hash with state (#1929)

3 years agoOpt db (#1926)
hauson [Thu, 29 Apr 2021 03:33:25 +0000 (11:33 +0800)]
Opt db (#1926)

* feat(add save_block_header fn): add SaveBlockHeader fn

* feat(opt save_block): opt SaveBlock fn

* feat(modify cache_test): modify cache test

* feat(rename block cache): rename blockCache as cache

* feat(add get block): add get block

* feat(modify): modify

* feat(modify block_header): modify writer_to and read_from

* feat(modify bloch_header): modify block_header

* feat(fix block_header_test): add BlockWitness

* feat(fix block_test): fix block_test

* feat(fix block integration test): fix block integration test

* feat(fix block_header_test.go): fix

* feat(fix block_test.go): fix block_test.go

* feat(opt code format): opt code format of store.go

* feat(modify cache): modify cache

* feat(modify cache): modify cache

* feat(modify store.go): modify store.go

* feat(modify): modify

* feat(modify block_integration_uitl.go): modify block_integration_util.go

* feat(delete max_cached_blocks): delete maCachedBlocks

* feat(delete mu): delete mu

* feat(delete blockprefix and txstatusprefix): delete const BlockPrefix and TxsStatusPrefix

* feat(add notes): add consts notes

3 years agointegrate_casper_chain (#1925)
Poseidon [Wed, 28 Apr 2021 07:42:04 +0000 (15:42 +0800)]
integrate_casper_chain (#1925)

* integrate_casper_chain

* fix name

* retry when rollback fail

3 years agosplit casper file (#1923)
Poseidon [Mon, 26 Apr 2021 13:16:18 +0000 (21:16 +0800)]
split casper file (#1923)

* split casper file

* fix test

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agofeat(bcrp): add isInvalidBCRPTx function (#1924)
DeKaiju [Mon, 26 Apr 2021 13:06:36 +0000 (21:06 +0800)]
feat(bcrp): add isInvalidBCRPTx function (#1924)

3 years ago2d data for butxo state (#1921)
boomyl [Sun, 25 Apr 2021 08:51:06 +0000 (16:51 +0800)]
2d data for butxo state (#1921)

3 years agoverification_out_of_order (#1920)
Poseidon [Sun, 25 Apr 2021 08:31:07 +0000 (16:31 +0800)]
verification_out_of_order (#1920)

* verification_out_of_order

* fix

* filter duplicate

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agoextend utxo struct && testcase with state data (#1848)
boomyl [Sun, 25 Apr 2021 06:00:55 +0000 (14:00 +0800)]
extend utxo struct && testcase with state data (#1848)

* extend utxo struct && testcase with state data

* fix some txs utxo case

* remove state for mux type

* sync

* fix case

* update case

* fix raw tx hex case

* fix veto case

fix

* fix tx case

* fix

* fix multisig

* fix wallet case

* fix estimate case

* skip intergration utxo case

* fix vote output

* fix merkleroot case

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agofeat(bcrp): implement wallet api for BCRP (#1916)
DeKaiju [Sun, 25 Apr 2021 03:47:57 +0000 (11:47 +0800)]
feat(bcrp): implement wallet api for BCRP (#1916)

* feat(bcrp): implement wallet api for BCRP

* refactor(bcrp): code refactoring

* refactor(bcrp): code refactoring

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agonew casper (#1918)
Poseidon [Fri, 23 Apr 2021 12:16:14 +0000 (20:16 +0800)]
new casper (#1918)

* new casper

* modify comment

* add check first checkpoints

* bug fix

* fix golint

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agoValidate block sup link (#1917)
Poseidon [Fri, 23 Apr 2021 12:05:10 +0000 (20:05 +0800)]
Validate block sup link (#1917)

* validate_block_sup_link

* validate_block_sup_link

* opt code

* remove make_suplink

* bug fix

* opt code

* fix prevCheckpointHash

3 years agoreturn_verification_when_apply_block (#1915)
Poseidon [Thu, 22 Apr 2021 12:19:58 +0000 (20:19 +0800)]
return_verification_when_apply_block (#1915)

* return_verification_when_apply_block

* modify comment

* opt

3 years agoadd_signature_for_block_header (#1914)
Poseidon [Thu, 22 Apr 2021 08:18:25 +0000 (16:18 +0800)]
add_signature_for_block_header (#1914)

* add_signature_for_block_header

* add test for sup_link

* format code

* update test

* format hex string

3 years agofeat(proposal): move vapor block proposer (#1913)
Mingjing [Thu, 22 Apr 2021 02:48:50 +0000 (10:48 +0800)]
feat(proposal): move vapor block proposer (#1913)

* feat(proposal):move vapor block proposer

* style(consensus config):change comments

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agofix_concurrent_auth_verification (#1912)
Poseidon [Thu, 22 Apr 2021 02:17:04 +0000 (10:17 +0800)]
fix_concurrent_auth_verification (#1912)

3 years agofix_get_validators_when_authVerificationLoop (#1911)
Poseidon [Wed, 21 Apr 2021 10:17:54 +0000 (18:17 +0800)]
fix_get_validators_when_authVerificationLoop (#1911)

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years ago feat(bcrp): add control contract action (#1909)
DeKaiju [Wed, 21 Apr 2021 09:00:35 +0000 (17:00 +0800)]
 feat(bcrp): add control contract action (#1909)

* feat(bcrp): add control contract action

* refactor(bcrp): code refactoring

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agocache_verification_msg (#1910)
Poseidon [Wed, 21 Apr 2021 08:55:44 +0000 (16:55 +0800)]
cache_verification_msg (#1910)

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agoFeat(ed25519): replace with crypto/ed25519 (#1907)
jacksoom [Wed, 21 Apr 2021 08:42:21 +0000 (16:42 +0800)]
Feat(ed25519): replace with crypto/ed25519 (#1907)

* feat(ed25519): repalce with crypto/ed25519

* modify Makefile

* ci

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agoadd_cache_for_get_prev_checkpoint (#1908)
Poseidon [Wed, 21 Apr 2021 07:23:24 +0000 (15:23 +0800)]
add_cache_for_get_prev_checkpoint (#1908)

* add_cache_for_get_prev_checkpoint

* opt code

* no need lock

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agofeat(block witness):finish adding and update tests (#1906)
Mingjing [Wed, 21 Apr 2021 06:46:48 +0000 (14:46 +0800)]
feat(block witness):finish adding and update tests (#1906)

* feat(block witness):finish adding and update tests

* style(block witness):modify name

* style(protocol types):keep the origin space

* fix(test):fix block_test after add block witness

* style(types):adjust import order

* style(types):add comments

* feat(block witness):use true signature

* style(protocol types): add comments and space

* style(protocol types):delete code

* feat(block witness):delete test cases

* feat(block witness):use testing.Run

* style(block witness):remove comments

* style(block witness):remove comments

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agoadd_mortgage_input_output (#1895)
Poseidon [Wed, 21 Apr 2021 06:32:24 +0000 (14:32 +0800)]
add_mortgage_input_output (#1895)

* add_mortgage_input_output

* add Confiscate mechanism

* remove type of input output

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agofeat(bcrp): add register action (#1904)
DeKaiju [Wed, 21 Apr 2021 06:26:22 +0000 (14:26 +0800)]
feat(bcrp): add register action (#1904)

* feat(bcrp): add register action

* refactor(bcrp): code refactoring

Co-authored-by: Paladz <yzhu101@uottawa.ca>
3 years agoFeat(BVM): change block height and amount func (#1905)
xuexiansong [Tue, 20 Apr 2021 13:55:02 +0000 (21:55 +0800)]
Feat(BVM): change block height and amount func (#1905)

* Feat(BVM): change block height and amount func

* Feat(BVM): change block height and amount func

3 years agofeat(proposal):move vapor proposal (#1903)
Mingjing [Mon, 19 Apr 2021 10:25:33 +0000 (18:25 +0800)]
feat(proposal):move vapor proposal (#1903)

* feat(proposal):move vapor proposal

* feat(proposal):set slice zero

* fix(proposal):fix sign header and witness

* style(chain):remove space

* style(protocol):remove space

3 years agorefactor(bcrp): code refactoring (#1901)
DeKaiju [Mon, 19 Apr 2021 07:59:23 +0000 (15:59 +0800)]
refactor(bcrp): code refactoring (#1901)

3 years agoFeat(BVM): delete op abs and negate (#1900)
xuexiansong [Mon, 19 Apr 2021 06:50:05 +0000 (14:50 +0800)]
Feat(BVM): delete op abs and negate (#1900)

3 years agofeat(config): replace NodeKey (#1897)
Mingjing [Sat, 17 Apr 2021 11:34:37 +0000 (19:34 +0800)]
feat(config): replace NodeKey (#1897)

* feat(config): replace NodeKey function

* style(config):adjust import order

3 years agoadd veto input (#1894)
Poseidon [Thu, 15 Apr 2021 11:07:43 +0000 (19:07 +0800)]
add veto input (#1894)

3 years agoDelete gas valid (#1893)
hauson [Thu, 15 Apr 2021 08:18:04 +0000 (16:18 +0800)]
Delete gas valid (#1893)

* feat(rm gas_valid part quote): rm gas_valid part quote

* feat(rm gas_valid quote): rm part gas_valid quote

* feat(rm gas_valid): rm GasValid field from GasState

* feat(modify functional-tests): modify functiional-tests

3 years agofeat(bcrp): convert call bcrp contract program (#1891)
DeKaiju [Thu, 15 Apr 2021 07:44:11 +0000 (15:44 +0800)]
feat(bcrp): convert call bcrp contract program (#1891)

* feat(bcrp): convert call bcrp contract program

* refactor(bcrp): code refactoring

* refactor(bcrp): code refactoring

* refactor(bcrp): code refactoring

* refactor(bcrp): code refactoring

3 years agofeat(github ci): add test CI (#1890)
jacksoom [Wed, 14 Apr 2021 06:15:09 +0000 (14:15 +0800)]
feat(github ci): add test CI (#1890)

* feat(github ci): add test ci

* fix

* fix

3 years agofix(remove pow): solve functional-tests error (#1888)
Mingjing [Tue, 13 Apr 2021 11:58:07 +0000 (19:58 +0800)]
fix(remove pow): solve functional-tests error (#1888)

3 years agoRm tx status fail (#1882)
hauson [Tue, 13 Apr 2021 11:57:09 +0000 (19:57 +0800)]
Rm tx status fail (#1882)

* feat(comment it out of test_fileter_account_utxo): comment it out of test_fileter_account_utxo

* feat(delete block_commintment transactionstatushash field): del BlockCommintment TxStatusHash

* feat(modify bc.proto): modify bc.proto

* feat(delete tx_status_root of blockheader): delete tx_status_root of blockheader

* feat(delete tx_status_test): delete tx_status_test

* feat(modify blockindex.go): modify blockindex.go

* feat(modify block_retrieve.go): modify block_retrieve.go

* feat(modify merkle.go): modify merkle.go

* feat(modify mining.go): modify mining.go

* feat(modify block_keeper_test.go): modify block_keeper_test.go

* feat(modify merkle.go): modify merkle.go

* feat(modify): modify block_retrieve.go

* feat(modify block_retrieve.go): modify block_retrieve.go

* feat(modify block_retrieve.go): modify block_retrieve.go

* feat(modify query/annotated.go): modify query/annotated.go

* feat(modify): modify

* feat(modify utxos.go): modify utxos.go

* feat(modify): modify

* feat(modify utxo.go): modify utxo.go

* feat(modify utxo_test.go): modify utxo_test.go

* feat(modify wallet.go): modify wallet.go

* feat(modify wallet.go): modify wallet.go

* feat(modify netsync message.go): modify netsync message.go

* feat(modif peer.go): modify peer.go

* feat(netsync handle.go): netsync handle.go

* feat(modify message.go): modify message.go

* feat(modify utxo_view.go): modify utxo_view.go

* feat(temp modify validationtx): temp modify ValidationTx

* feat(modify block.go): modify block.go

* feat(modify utxo_view.g): modify utxo_view.go

* feat(modify chain interface): remove GetTransactionStatus func

* feat(modify mock/chain.go): modify mock/chain.go

* feat(modify store.go): modify store.go

* feat(delete ts.getstatus): delete ts.GetStatus

* feat(modify mining.go): modify mining.go

* feat(modify store.go): modify store.go SaveBlock fn

* feat(modify protocol.go init_chain_status): modify protocol.go initChainStatus

* feat(modify block.go validate_block func): modify block.go ValidateBlock fnc

* feat(modify block_test_util.go): modify NewBlock func

* feat(modify tx_status.go): delete SetTransactionStatus func

* feat(modify tx_status.go): delete NewTransactionStatus func

* feat(modify tx_status.go): modify tx_status.go

* feat(modify bc.proto): modify bc.proto

* feat(modify blockheader.go): modify blockheader.go

* feat(modify block_retrieve.go): modify block_retrieve.go

* feat(modify txpool.go): modify txpool.go

* feat(format): format

* feat(modify block_integration_test.go): modify block_integration_test.go

* feat(modify block.go validate_block fn): modify block.go ValidateBlock fn

* feat(golint): golint

* feat(fix): fix

* feat(fix): fix

* feat(fix): fix

* feat(fix): fix

* feat(fix): fix

* feat(fix): fix

* feat(add test control): add test control

* feat(temp): temp

* feat(modify bypes/block_test.go): modify want hash

* feat(netsync/consensusmgr/consensus_msg_test.go): modify

* feat(modify): blockindex_test.go TestNewBlockNode

* feat(ignore block_process_test): ignore TestBlockProcess

* feat(modify block_integration_test.go): modify TestProcessBlock fn

* feat(golint): golint

* feat(golint): golint

* feat(rm pow_test.go): rm pow_test.go

* feat(modify block_integration_test.go): modify b

* feat(modify testcontrol): delete CHXTest

* feat(delete wallet test temp file): delete wallet temp file by test generate

3 years agofeat(go mod): go mod (#1886)
jacksoom [Tue, 13 Apr 2021 08:10:12 +0000 (16:10 +0800)]
feat(go mod): go mod (#1886)

* feat(vendor to gomod): migrate govendor to gomod

* just pass gomod tidy

* simple fix

* fix

* fix

* fix

* fix

* feat(go mod):Package Manager to go mod

Package Manager to go mod

* fix

* add lib

* Update ed25519_test.go

* fix go mid

fix go mid

* merge

* Update Makefile

* fix

* fix

* fix

3 years agotest(bcrp): add unit test of saveContractView and deleteContractView (#1878)
DeKaiju [Tue, 13 Apr 2021 06:26:17 +0000 (14:26 +0800)]
test(bcrp): add unit test of saveContractView and deleteContractView (#1878)

* test(bcrp): add unit test of saveContractView and deleteContractView

* refactor(bcrp): code refactoring

* refactor(bcrp): code refactoring

* refactor(bcrp): code refactoring

* refactor(bcrp): code refactoring

* refactor(bcrp): code refactoring

3 years agofix_estimate_tx_gas (#1885)
Poseidon [Tue, 13 Apr 2021 06:21:17 +0000 (14:21 +0800)]
fix_estimate_tx_gas (#1885)

3 years agoAdd vote output (#1879)
Poseidon [Tue, 13 Apr 2021 03:18:30 +0000 (11:18 +0800)]
Add vote output (#1879)

* add vote output

* move func to test file

* fix test

* refactor

* rename to original tx output

* fix test

* modify makefile for ci

* recover makefile

3 years agochore(vendor): add vendor github.com/google/uuid (#1884)
DeKaiju [Tue, 13 Apr 2021 03:11:20 +0000 (11:11 +0800)]
chore(vendor): add vendor github.com/google/uuid (#1884)

3 years agoopt casper detail (#1880)
Poseidon [Mon, 12 Apr 2021 11:01:44 +0000 (19:01 +0800)]
opt casper detail (#1880)

* opt casper detail

* impossible two checkpoint with same height both justified

* opt code

* refactor

3 years agoFeat(BVM): change op eq (#1875)
xuexiansong [Fri, 9 Apr 2021 06:55:40 +0000 (14:55 +0800)]
Feat(BVM): change op eq (#1875)

3 years agofeat(remove mining): remove mining code (#1877)
jacksoom [Fri, 9 Apr 2021 06:13:20 +0000 (14:13 +0800)]
feat(remove mining): remove mining code (#1877)

3 years agoFeat(BVM): change op shift (#1874)
xuexiansong [Fri, 9 Apr 2021 05:33:01 +0000 (13:33 +0800)]
Feat(BVM): change op shift (#1874)

* Feat(BVM): change op shift

* Feat(BVM): change op shift 1

* Feat(BVM): change op shift 2