由于部分时候eth的gasPrice过低,上链太慢,于是写了一个加速现有tx的工具
替换tx的原理在于,如果eth的交易已经广播并且还没打包进block,
那么重新广播一个nonce值相同
并且gasPrice大于之前交易
的tx,就会用新的tx替换旧的tx
由于程序调用需要使用私钥,所以请确保你知道自己在做什么再使用此工具.
下载release中自己平台的压缩包 解压进入目录
./goethspeedup
Usage of ./gomysql2struct:
-gas int
gas price value in gwei (default 10)
-h help message
-key string
eth address private key
-limit uint
gas limit of tx
default is 0, when limit is 0, it will keep the old gas limit in the original tx
-swap string
rpc uri of eth
-txid string
txid to speed up
MIT © moremorefun