• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Zusammenfassung des Repository

Golang implemented sidechain for Bytom


Neueste Commits RSS

Rev. Zeit Autor Nachricht
dc24319 2019-10-15 11:10:59 yahtoo master Set chain Tx Gas 0 (#409) * Set chain Tx Gas 0 * Fix ...
a9fc8a9 2019-10-15 11:07:06 oys dev-magnetic modify parameter name
19c9d93 2019-10-14 19:45:10 Yahtoo Ma chainTxMergeGas Revert test file modify
915ee96 2019-10-14 18:19:37 shenao78 dex_core opt code
5bff747 2019-10-14 17:31:57 shenao78 bug fix
3b9541d 2019-10-14 16:49:47 shenao78 bug fix
48ed4d7 2019-10-14 11:34:54 shenao78 import order
57d8fe5 2019-10-14 11:14:28 shenao78 import order
b13bc66 2019-10-14 11:13:26 shenao78 opt code
4ef4a30 2019-10-14 10:52:39 shenao78 opt code

Kürzlich bearbeitete Tags

Name Rev. Zeit Autor
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

Zweige

Name Rev. Zeit Autor Nachricht
master dc24319 2019-10-15 11:10:59 yahtoo Set chain Tx Gas 0 (#409) ...
dev-magnetic a9fc8a9 2019-10-15 11:07:06 oys modify parameter name
chainTxMergeGas 19c9d93 2019-10-14 19:45:10 Yahtoo Ma Revert test file modify
dex_core 915ee96 2019-10-14 18:19:37 shenao78 opt code
mov a31e6d9 2019-10-12 18:07:11 oysheng magnetic program (#402) * ...
dev-dexprogram eb29189 2019-10-12 17:24:32 oys optimise
combination d7f58f5 2019-09-27 17:55:47 shenao78 fix import
subprotocol 83d8044 2019-09-27 16:52:34 Yahtoo Ma Del unused code
dex_database_logic_implementation 892ea3f 2019-09-26 17:32:24 wz Add logic implementation
dex_databse_struct 8ccbfd6 2019-09-24 15:31:32 wz database struct
fix_bug cffd1cd 2019-09-19 19:22:28 oys modify soft point height
dss 02140ed 2019-09-12 13:26:44 HAOYUatHZ add
fix_mainchain_keeper 580819d 2019-09-09 16:02:57 shenao78 remove config
utxo_test d50ff0b 2019-09-04 12:19:35 wyjDoraemon utxo_view
precogs/init 710a2db 2019-09-03 16:22:56 HAOYUatHZ rollback
toolbar 2db2c17 2019-09-03 11:27:40 wyjDoraemon fix createAccount alias
fix_no_table e35d58a 2019-08-30 11:17:58 wz fix
server 4feb1d8 2019-08-28 16:33:13 HAOYUatHZ rename
feature_listchain_api 7860cae 2019-08-21 17:58:48 Paladz Merge branch 'master' into...
test_protocol b12c7b5 2019-08-13 16:42:59 wz fix log (#388)
fix_log_err eb1ea85 2019-08-13 16:35:27 wz fix log
fix_log 8f34976 2019-08-13 16:21:48 wyjDoraemon writer close
merger_utxo 58a564d 2019-08-12 15:13:52 wz add merger utxo
add_vote_reward_memo 7208874 2019-08-12 14:57:32 paladz fix small issue
protocol_test be99aff 2019-08-12 13:48:11 Yahtoo Ma Add protocol status test case
modify_readme_for_votereward 3bec469 2019-08-08 15:18:09 wz modify readme
block_fetcher 8251b6d 2019-08-05 18:05:16 Yahtoo Ma Peer add announces new bloc...
dockerfile f9902b1 2019-08-02 15:56:31 HAOYUatHZ mv dockerfiles
add_log_for_votereward c95e802 2019-08-01 15:47:13 wz add log
vote_reward_readme d7190f1 2019-07-31 16:53:53 mars modify readme for voterewatd
netsync-test be23060 2019-07-29 20:28:42 Yahtoo Ma netsync add test case
revert-357-master d037ce0 2019-07-29 11:32:01 Paladz Revert "log into file (#357...
fixconsensusreward 46c4de9 2019-07-26 17:51:48 iczc delete unused
feature_rewardstatistics 8ad88a0 2019-07-26 17:22:43 iczc Change interval
alternative_nodes 6bdec32 2019-07-25 18:20:41 mars fix review
feature_consensusreward b37eb87 2019-07-25 15:48:06 iczc Merge branch 'feature_conse...
bbft_test 7216c1e 2019-07-24 21:52:18 shenao78 opt code
dev-test 82a133a 2019-07-24 15:07:22 oys Merge branch 'master' into ...
reward_util 3aec498 2019-07-23 12:25:46 mars fix review
fix_sweep_txpool df28dbb 2019-07-20 11:32:13 Wei Wang txpool: periodically sweep ...
Dockerfile 43a6104 2019-07-20 11:30:28 Yahtoo Ma Modify Dockerfile expose po...
edit_dump db2a15f 2019-07-19 23:20:35 paladz delete the key index
dump da60fba 2019-07-19 21:01:03 HAOYUatHZ update db dump (#332)
wallet-store-test ff61324 2019-07-19 18:06:43 Chengcheng Zhang Merge branch 'master' into ...
mainnet_seeds 2cb65e9 2019-07-19 17:30:13 HAOYUatHZ add mainnet seeds
consensus b57db94 2019-07-19 17:02:19 HAOYUatHZ vapor v1.0 genesis consensus
clean c567be0 2019-07-19 03:02:19 Paladz Merge branch 'master' into...
federation-address b91e392 2019-07-18 18:06:58 Chengcheng Zhang update GetNodeInfo
deadlock 38428c0 2019-07-18 15:56:44 Yahtoo Ma Opz name of the variable
netParams 9ab6328 2019-07-17 21:17:17 HAOYUatHZ update doc
update eaf5d99 2019-07-17 17:58:24 HAOYUatHZ fix config & update mysql d...
account-store-test 821efc3 2019-07-17 16:14:31 Chengcheng Zhang fix conflict
dev-free 5764f1c 2019-07-17 11:24:10 oys optimise
ten_times_federation_vote cbf22dd 2019-07-17 10:28:25 shenao78 ten times federation vote
fix_fed_connect_issue 47f5cf7 2019-07-17 00:50:48 paladz fix bug
node_path 0b60020 2019-07-15 23:16:13 HAOYUatHZ refactor: use derived xpubs...
fed_path 33f41e2 2019-07-15 22:03:37 HAOYUatHZ add fed path
test-save-block e2faecd 2019-07-15 20:25:32 Chengcheng Zhang update
rename_dir 427c35b 2019-07-15 15:18:20 mars rename dir
voter_reward 3ed12f9 2019-07-15 14:55:58 mars rename dir
netsync 59d2863 2019-07-15 13:15:53 Yahtoo Ma Fix test file err
filter_t 2499362 2019-07-15 12:15:34 Paladz Merge branch 'master' into...
modify-init 767b83d 2019-07-13 11:37:35 Chengcheng Zhang update init
asset_symbol dad98e7 2019-07-12 20:56:18 HAOYUatHZ fix import
fix-bug f13b0c0 2019-07-12 20:47:53 paladz try to fix ban peer bug
add-xpub c48080a 2019-07-12 18:36:43 Chengcheng Zhang update
signature_msg 16276da 2019-07-12 15:54:27 Paladz Merge branch 'master' into...
dashboard 8c09b5e 2019-07-12 15:03:12 Zhiting Lin update dashboard
dev-genernl 59604bb 2019-07-12 11:20:25 oys optimise
fix-get-utxo 73f40d5 2019-07-11 17:26:30 Chengcheng Zhang update log
fix_bug_list_transactions 2ab002a 2019-07-11 17:20:52 mars fix bug
dev-modify 3c8eaad 2019-07-11 12:19:45 oys optimise
wallet-store-interface 3fa10c8 2019-07-11 11:43:17 Chengcheng Zhang update getExternalDefinition
parallel-fast-sync 84b4214 2019-07-11 10:04:52 Yahtoo Ma Fix review bug
blacklist 91fc4aa 2019-07-10 20:36:11 Yahtoo Ma fix ban node failed
master-filterAccountTxs 0310308 2019-07-10 15:27:21 Chengcheng Zhang update
wallet-store-interface-TestRescanWallet c71db6d 2019-07-09 22:15:47 Chengcheng Zhang remove loop
fix_tx_rollback df33e58 2019-07-09 12:29:00 Wei Wang restore Tx back to Tx pool ...
fix_change d041427 2019-07-08 15:20:58 HAOYUatHZ filter change output
wallet-store-interface-TestRescanWallet-prefix 027b55d 2019-07-08 13:46:40 Chengcheng Zhang move db wallet store prefix
dev-coinbase 1611874 2019-07-06 16:16:59 Paladz Merge branch 'master' into...
fix_LIB 2b9475d 2019-07-05 19:02:10 Wei Wang keep last irreversible bloc...
fix_outputID aea2a15 2019-07-05 11:48:33 HAOYUatHZ refine code
wallet-store-interface-mockstore 3ada9e6 2019-07-05 05:17:37 Chengcheng Zhang update TestMemPoolTxQueryLoop
wallet-store-interface-unmarshal db398f2 2019-07-04 22:10:54 Chengcheng Zhang fix conflicts
blockheight d3c2fdb 2019-07-04 16:14:39 HAOYUatHZ Merge remote-tracking branc...
small_edit 2282cf7 2019-07-04 12:22:11 paladz delete unused file
compression 3b96051 2019-07-03 16:50:51 mars add compression
distribution_rewards 94ffe40 2019-07-02 20:53:58 wz Tx validate mining (#237) ...
tx_validate_mining 73c5c97 2019-07-02 20:17:12 mars tx validate for minging
fed_prog 106fc48 2019-07-02 16:34:13 HAOYUatHZ filter source block height
fix_paging 4cc569a 2019-07-02 16:17:31 mars fix paging
paging_utxo e2294ce 2019-07-01 16:52:48 wz Paging (#234) * add paging...
wallet-store-interface-walletstore ef9af46 2019-06-28 17:43:03 Chengcheng Zhang update SetStandardUTXO
paging 924a3bf 2019-06-28 17:27:51 mars Merge remote-tracking branc...
dev-fix 1eff3e9 2019-06-28 13:16:43 oys fix array out of index range
wallet-store-interface-marshal-test 78fd2d8 2019-06-28 02:55:43 Chengcheng Zhang update GetUTXOs
fix_lru e73e54d 2019-06-27 21:29:31 Paladz Merge branch 'master' into...
sql 653699f 2019-06-27 16:50:32 HAOYUatHZ clean up
wallet-store-interface-marshal 8110aa5 2019-06-27 13:47:47 Chengcheng Zhang update

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

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

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/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/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