• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: 仓库概述

Golang implemented sidechain for Bytom


Recent Commits RSS

Rev. 时间 作者 Message
c105e64 2020-05-23 13:21:44 Paladz master v1.1.3 Hot fix (#535) * fix net issue * fix mov contract is...
37cfb50 2020-05-23 05:26:44 paladz hot_fix add version number
6501659 2020-05-23 05:23:37 paladz fix mov contract issue
94e7a38 2020-05-23 02:25:32 paladz fix net issue
c24c174 2020-04-23 16:53:50 Poseidon v1.1.2 v1.1.2_release (#534) * v1.1.2_release * fix pr num
29755d2 2020-04-23 16:34:40 shenao78 v1.1.2_release fix pr num
b7c2913 2020-04-23 16:33:35 shenao78 v1.1.2_release
2aafa73 2020-04-23 14:59:18 Poseidon add_btc_asset_white_list (#533)
0188780 2020-04-10 12:11:37 DeKaiju gov2 v1.1.1 build(version): change vapord version to 1.1.1 (#532)
0e60d07 2020-04-04 00:31:19 Paladz prevent double sign lock (#531) Co-authored-by: paladz ...

Recently edited Tags

名称 Rev. 时间 作者
v1.1.3 c105e64 2020-05-23 13:21:44 Paladz
v1.1.2 c24c174 2020-04-23 17:01:28 Poseidon
v1.1.1 0188780 2020-04-10 12:11:37 DeKaiju
v1.1.0 3dba952 2020-03-26 13:36:32 Paladz
v1.0.5 0b8e544 2019-12-04 19:31:15 Poseidon
v1.0.4 4b5e427 2019-10-24 16:05:17 wz
1.0.3 3f53de9 2019-09-20 23:43:46 Paladz
v1.0.3 3f53de9 2019-09-20 23:43:46 Paladz
v1.0.2 27106c4 2019-09-19 19:48:12 Paladz
v1.0.1 bf344d1 2019-08-29 15:26:41 yahtoo
v1.0.0 3a6cd96 2019-07-20 11:58:14 apolloww
v0.3.0 353a871 2019-07-18 11:56:01 Zhiting Lin
v0.2.0 0af46f9 2019-06-28 15:21:12 Zhiting Lin
v0.1.0 f921741 2019-06-20 12:06:14 Paladz

Branches

名称 Rev. 时间 作者 Message
master c105e64 2020-05-23 13:21:44 Paladz Hot fix (#535) * fix net ...
hot_fix 37cfb50 2020-05-23 05:26:44 paladz add version number
v1.1.2_release 29755d2 2020-04-23 16:34:40 shenao78 fix pr num
gov2 0188780 2020-04-10 12:11:37 DeKaiju build(version): change vap...
key_alias b8c0ca3 2020-04-02 20:59:30 Paladz Merge branch 'master' into...
mov_late_node_sync_test 573465e 2020-04-02 20:54:59 shenao78 use iterator replace to ite...
sync_for_late_node 8fe5d2e 2020-04-01 20:59:17 shenao78 prevent duplicate init chai...
mov_fast_sync bb191b4 2020-03-26 10:51:54 shenao78 Merge branch 'fix_fee' into...
fix_fee d546f7d 2020-03-26 02:13:05 paladz fix format
fix_match_engine 64b4b3c 2020-03-25 18:46:14 shenao78 fix match engine
fix_mov_engine 7f3c654 2020-03-25 14:51:58 shenao78 fix mov enginej
mov-solonet a8e8497 2020-03-23 21:25:21 oys modify
mov 37774d2 2020-03-21 11:37:06 Paladz last review (#519) * last...
elegant f34f519 2020-03-21 11:11:45 paladz edit for code review
opt_is_matched 68ccbb4 2020-03-18 18:04:44 shenao78 opt is matched
temp_sync_branch ad1eab4 2020-03-18 15:21:46 shenao78 temp sync branch
rollback_test_casesubmit e8b6064 2020-03-18 14:56:39 Paladz Merge branch 'mov' into ro...
fix_issue 9b74aec 2020-03-16 19:56:05 paladz no tricks
ban_status_fail 5b12cb7 2020-03-16 15:38:57 paladz ban status fail for flash s...
for_bepal 5da5b24 2020-03-13 22:39:13 paladz edit for quick fix
opt_mov abfee0c 2020-03-11 11:06:41 shenao78 opt mov
one_thousandth_fee b726c24 2020-03-10 19:50:17 Poseidon Merge branch 'mov' into on...
fix_mov_contract_test 718345d 2020-03-10 19:06:10 shenao78 fix_mov_contract_test
fee a2089dc 2020-03-10 15:58:40 paladz edit for code review
fee_strategy cdf7e7a 2020-03-09 16:08:38 shenao78 fee strategy
validate_reward_address e443154 2020-03-06 16:55:36 shenao78 opt code
match_fee_strategy 7ce3949 2020-03-06 13:15:52 shenao78 merge mov
fixed_bonus_address dc43c45 2020-03-03 15:15:34 shenao78 fixed reward address
rollback_test_pr 18f93fb 2020-03-02 12:23:33 ipqhjjybj ro
fast_sync da3156f 2020-02-26 16:09:58 shenao78 fast sync
rollback_mock_pr4 a8059b1 2020-02-26 11:40:38 ipqhjjybj add mov heigh
rollback_real_pr4 532549b 2020-02-26 11:23:35 ipqhjjybj add all
compatiable e50960c 2020-02-25 14:35:33 shenao78 Merge branch 'mov' into com...
fix_validate_tx bf037dd 2020-02-25 13:17:25 shenao78 fix validate tx
rollback_pr4 43c8874 2020-02-24 20:38:58 ipqhjjybj s
fix_add_order_of_order_book 01eeb53 2020-02-23 13:00:51 Paladz Merge branch 'mov' into fi...
rollback_pr3 f310fd9 2020-02-20 17:34:09 ipqhjjybj rename
rollback_pr3_1 4cc5b5e 2020-02-20 09:09:35 ipqhjjybj re design reorganizeChain
rollback_real_pr2 5e92793 2020-02-19 18:37:43 ipqhjjybj change rollback func return...
fix_init_mov_state 3462e2c 2020-02-19 15:40:47 shenao78 remove Junk files
rollback_pr2 3b10a18 2020-02-19 10:51:27 ipqhjjybj add deleteBlock and then f...
rollback_pr1 9f9a32d 2020-02-18 21:35:14 ipqhjjybj Merge branch 'rollback_pr1'...
rollback_block b3ddcbe 2020-02-18 16:49:47 ipqhjjybj first commit for rollback b...
asset_whitelist 2837760 2020-02-15 19:43:10 HAOYUatHZ golint
fix_add_order_bug 75c0efa 2020-02-13 20:59:04 paladz fix add order bug
validate_matched_tx_sequence_test 07dd42e 2020-02-13 11:59:38 shenao78 Supplementary unit tests
api_requeset_fix 00f7804 2020-02-12 16:38:33 mars add body close for http req...
review 9b0a600 2020-02-12 11:34:29 paladz edit for code review
opt_mathch_collector 350afe3 2020-02-06 19:45:05 shenao78 opt_mathch_collector
opt_mov_performance 5c2c40c 2020-02-06 18:23:53 shenao78 use int for worker num
fix_decimal 4c90195 2020-01-22 15:31:09 shenao78 fix decimal
fix_open_federation_issue_asset e0345b2 2020-01-20 16:39:25 shenao78 fix_open_federation_issue_a...
complement_mov_test 6c9119c 2020-01-19 17:16:42 shenao78 complement mov test
mov_test eccbe23 2020-01-09 17:26:38 EC2 Default User test config
mov_fast 7f77e74 2020-01-07 15:08:25 shenao78 mov fast
update_seeds 557ab78 2020-01-07 10:54:29 shenao78 remove config.json
fix_mov_bug e029003 2020-01-03 15:23:49 ipqhjjybj s
tele_test dfeb5b4 2020-01-03 11:32:54 Jay Add
fix_long_fork aa9235f 2019-12-26 17:29:16 shenao78 fix
opt_mov_validate_match_tx 760aee0 2019-12-24 21:28:45 shenao78 Merge branch 'opt_mov_valid...
fix_lru_bug bf455f1 2019-12-24 20:43:20 shenao78 remove blanck line
tele_test_dashboard 9fea129 2019-12-24 17:00:04 Zhiting Lin update dashboard with cross...
tele f9c0691 2019-12-18 20:24:33 oys opt
telecom 6bbeaa2 2019-12-18 11:44:58 Jay no message
action 71561f5 2019-12-09 11:10:14 Chengcheng Zhang update
update-mov fbaf5e3 2019-12-06 20:05:38 Chengcheng Zhang update
fix_mov_issue 5f0b01c 2019-12-06 16:57:34 shenao78 fix ci
cache beec6e4 2019-12-06 16:12:21 Chengcheng Zhang update
fix_infinite_loop ec65681 2019-12-04 18:04:04 shenao78 validate equals trade pair
issuance_length 303760a 2019-12-02 15:56:48 HAOYUatHZ increase length
fix_recursive_bug 5202c34 2019-11-29 21:40:20 paladz edit logic
mov_check_critic 13c03c4 2019-11-29 00:16:20 HAOYUatHZ init too;
fix_core_sync 0d2d815 2019-11-27 20:05:31 Paladz Merge branch 'mov' into fi...
regular_sync_bug d36e2a6 2019-11-27 18:44:53 paladz try fix
force_block c480f7a 2019-11-27 17:17:37 shenao78 force block
sign_block 27eafbf 2019-11-27 17:01:22 Paladz Merge branch 'mov' into si...
dust_tx 4f9a992 2019-11-27 16:28:52 Paladz Merge branch 'mov' into du...
fix_mov_should_pay_amount af122f0 2019-11-27 16:19:42 shenao78 fix conflict
add_mul_fraction_op 524968c 2019-11-27 10:57:43 HAOYUatHZ minor
update_testnet_config fdcc616 2019-11-25 13:27:22 shenao78 rollback federation config
edit_time_limit f058ca0 2019-11-25 12:31:21 Paladz Merge branch 'mov' into ed...
fix_crossin_api 1948ee5 2019-11-25 11:47:00 wz fix
fix_request_amount_zero 655389a 2019-11-25 11:33:06 shenao78 fix request amount zero
add_protocol_verify_tx f2fd7c3 2019-11-25 11:03:47 paladz submit tx protocol verify
faucet 0af6aef 2019-11-23 18:33:54 Chengcheng Zhang update
fix_lock 2658d9b 2019-11-22 19:59:51 paladz fix the roll back dead lock
p2p dac68ea 2019-11-22 13:29:03 DeKaiju fix(log): change p2p connec...
proposal_timeout d01a166 2019-11-21 16:56:46 paladz set proposal have timeout
fix_sync_status 99cb9c5 2019-11-13 12:20:33 Paladz Merge branch 'mov' into fi...
modify_corssout_tx_action 1bdbd1f 2019-11-12 12:17:58 wz add program for corssout ac...
demonstration 00b377a 2019-11-12 12:11:44 wz add program for corssout ac...
check_logic c673035 2019-11-06 01:59:00 paladz same change while go over t...
check_mov_store 7702f5f 2019-11-05 17:50:39 Paladz Merge branch 'mov' into ch...
fix_match 28941b0 2019-11-05 15:19:01 shenao78 opt code
mov_core_test 24ac294 2019-11-04 18:07:33 shenao78 add calcMatchedTxFee test
fix_order_table e69bba3 2019-11-01 17:57:23 shenao78 fix order table
merge_order_from_pool a301cbd 2019-11-01 11:19:57 shenao78 rename
mov_merge 35ad7f3 2019-10-31 18:28:03 shenao78 block height limit for befo...
mov_status_fail db1f09a 2019-10-29 18:56:33 shenao78 add status fail check
mov_joint 8eaac84 2019-10-28 13:48:38 shenao78 format code

README.md

Vapor

Build Status AGPL v3

Golang implemented sidechain for Bytom.

Requirements

  • Go version 1.11 or higher, with $GOPATH set to your preferred directory

Get source code

$ cd $GOPATH/src/github.com/bytom
$ git clone https://github.com/Bytom/vapor.git

Then, you have two ways to get vapor executable file:

  1. compile source code
  2. build it using Docker

Installation

$ cd $GOPATH/src/github.com/bytom/vapor
$ make install

Run Directly

Firstly, you need initialize node:

$ vapord init --chain_id=mainnet --home <vapor-data-path>

The default vapor data path (on the host) is: + Mac: ~/Library/Application Support/Vapor + Linux: ~/.vapor + Windows: %APPDATA%\Vapor

Then, start your node:

$ vapord node --home <vapor-data-path>

Running in Docker

Build the image

$ cd $GOPATH/src/github.com/bytom/vapor
$ docker build -t vapor .

Enter the iterative mode

$ docker run -it --net=host -v <vapor/data/directory/on/host/machine>:/root/.vapor vapor:latest

vapor data directory has three config files:

  • config.toml
  • federation.json
  • node_key.txt

Use exit to exit Docker's iterative mode.

Daemon mode

For example,

$ docker run -d --net=host -v <vapor/data/directory/on/host/machine>:/root/.vapor vapor:latest vapord node --web.closed --auth.disable

To list the running containners and check their container id, image, corresponding command, created time, status, name and ports being used:

$ docker container ls

or

$ docker ps

To execute a command inside a containner, for example:

$ docker exec -it <containerId> vaporcli create-access-token <tokenId>

To stop a running containner:

$ docker stop <containerId>

To remove a containner:

$ docker rm <containerId>

Reward distribution tool

After the supernode and alternative node receive the reward from the node, they will allocate the reward

according to the interest rate.

The reward calculation rules:

calculate the reward (consensus reward * interest rate * voting weight) according to the weight of votes

cast in consensus around, and choose how many rounds of consensus to allocate the reward flexibly.

Tool usage details

Merger utxo

UTXO has been merged to solve the problem that too much UTXO input causes a failed send transaction to fail. details

License

AGPL v3

Show on old repository browser