是这样的,我发现一些合约用多个不同的钱包发送交易。我不知道他为啥要这么麻烦。可以肯定的是,这个合约就他私人在用,应该不存在多人调用他合约的情况。
然后我现在不停的加速的交易,可能一笔交易会发送多笔加速,但是我发现有些加速矿工不收。我的速度肯定是很快的,应该在矿工打包之前。
我现在是怀疑我的钱包发送太多的交易,然后矿工或者节点拒绝接收之类的。有没有这种可能性呢? 我是否需要用多个钱包进行交易比较好一点?
每个节点的pending池子大小是有限的,每个地址是64,所以需要从程序上控制,超过64就等待,别再发了
var (
// Transaction Pool Errors
...
)
const (
maxQueued = 64 // max limit of queued txs per address
)
...
// TxPool contains all currently known transactions. Transactions
// enter the pool when they are received from the network or submitted
// locally. They exit the pool when they are included in the blockchain.
//
// The pool separates processable transactions (which can be applied to the
// current state) and future transactions. Transactions move between those
// two states over time as they are received and processed.
type TxPool struct {
quit chan bool // Quiting channel
...