core, les: fix les unit tests (#19823)

This commit is contained in:
gary rong
2019-07-22 20:45:40 +08:00
committed by Péter Szilágyi
parent a32a2b933a
commit b80c840af3
5 changed files with 22 additions and 12 deletions

View File

@ -745,13 +745,13 @@ func (pool *TxPool) AddRemotes(txs []*types.Transaction) []error {
}
// This is like AddRemotes, but waits for pool reorganization. Tests use this method.
func (pool *TxPool) addRemotesSync(txs []*types.Transaction) []error {
func (pool *TxPool) AddRemotesSync(txs []*types.Transaction) []error {
return pool.addTxs(txs, false, true)
}
// This is like AddRemotes with a single transaction, but waits for pool reorganization. Tests use this method.
func (pool *TxPool) addRemoteSync(tx *types.Transaction) error {
errs := pool.addRemotesSync([]*types.Transaction{tx})
errs := pool.AddRemotesSync([]*types.Transaction{tx})
return errs[0]
}