OSDN Git Service

Merge pull request #741 from Bytom/p2p_test
[bytom/bytom.git] / tools / sendbulktx / README.md
1
2 # 发送远端交易
3 ## Example
4 ```
5 $ go build
6 $ export BYTOM_URL="http://192.168.199.62:9888"
7 $ ./sendbulktx
8
9 tx num: 600, use time: 3m8.8846942s
10 height: 561 ,tx num: 67
11 height: 562 ,tx num: 67
12 height: 563 ,tx num: 51
13 height: 564 ,tx num: 156
14 height: 565 ,tx num: 82
15 height: 559 ,tx num: 17
16 height: 560 ,tx num: 160
17
18 ```
19 available flags for `sendbulktx`:
20
21 ```
22       --assetnum int    Number of transactions asset (default 10)
23       --config string   config file (default "./config.toml")
24       --thdnum int      goroutine num (default 5)
25       --thdtxnum int     The number of transactions per goroutine (default 10)
26 ```
27
28 # config.toml
29 ```
30 send_acct_id = "0CMUIQ06G0A02"
31 send_asset_id = "36017df0de65f4de249c966b9a98b8765ee9ecd438be14cdefce9b6467e7a752"
32 #"issue", "spend", "address"
33 build_type = "address"
34 #asset_receiver = ["bm1qm97wwnjvgxarwzgd4q9saf38fj9r5jr8aelcvp"]
35 asset_receiver = ["bm1q678m0eac5xcxxvalynzjp5cl4wq06rp039svzs","bm1qhgpjl0f7hzyxj866v0ztllscw6uqmh5gfcuqgy"]
36 ```