Not count txs marked as external_delete to reach MaxTxsPool

This commit is contained in:
arnaubennassar
2021-03-17 09:45:21 +01:00
parent 80f16201a2
commit c280b21b89
4 changed files with 3 additions and 4 deletions

View File

@@ -179,7 +179,7 @@ func (a *API) verifyPoolL2TxWrite(txw *l2db.PoolL2TxWrite) error {
// Get public key
account, err := a.h.GetCommonAccountAPI(poolTx.FromIdx)
if err != nil {
return tracerr.Wrap(err)
return tracerr.Wrap(fmt.Errorf("Error getting from account: %w", err))
}
// Validate TokenID
if poolTx.TokenID != account.TokenID {