mirror of
https://github.com/arnaucube/hermez-node.git
synced 2026-02-07 03:16:45 +01:00
WIP6
This commit is contained in:
@@ -311,7 +311,6 @@ func (p *Pipeline) Start(batchNum common.BatchNum,
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
err := p.waitServerProof(p.ctx, batchInfo)
|
err := p.waitServerProof(p.ctx, batchInfo)
|
||||||
batchInfo.ServerProof = nil
|
|
||||||
if p.ctx.Err() != nil {
|
if p.ctx.Err() != nil {
|
||||||
continue
|
continue
|
||||||
} else if err != nil {
|
} else if err != nil {
|
||||||
@@ -326,6 +325,7 @@ func (p *Pipeline) Start(batchNum common.BatchNum,
|
|||||||
}
|
}
|
||||||
// We are done with this serverProof, add it back to the pool
|
// We are done with this serverProof, add it back to the pool
|
||||||
p.proversPool.Add(p.ctx, batchInfo.ServerProof)
|
p.proversPool.Add(p.ctx, batchInfo.ServerProof)
|
||||||
|
// batchInfo.ServerProof = nil
|
||||||
p.txManager.AddBatch(p.ctx, batchInfo)
|
p.txManager.AddBatch(p.ctx, batchInfo)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,6 +140,7 @@ func (t *TxManager) NewAuth(ctx context.Context) (*bind.TransactOpts, error) {
|
|||||||
return nil, tracerr.Wrap(err)
|
return nil, tracerr.Wrap(err)
|
||||||
}
|
}
|
||||||
inc := new(big.Int).Set(gasPrice)
|
inc := new(big.Int).Set(gasPrice)
|
||||||
|
// TODO: Replace this by a value of percentage
|
||||||
const gasPriceDiv = 100
|
const gasPriceDiv = 100
|
||||||
inc.Div(inc, new(big.Int).SetUint64(gasPriceDiv))
|
inc.Div(inc, new(big.Int).SetUint64(gasPriceDiv))
|
||||||
gasPrice.Add(gasPrice, inc)
|
gasPrice.Add(gasPrice, inc)
|
||||||
|
|||||||
Reference in New Issue
Block a user