File tree Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Expand file tree Collapse file tree 2 files changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -2015,21 +2015,7 @@ impl MemPoolDB {
2015
2015
nonce : u64 ,
2016
2016
) -> Result < Option < MemPoolTxMetadata > , db_error > {
2017
2017
let sql = format ! (
2018
- "SELECT
2019
- txid,
2020
- origin_address,
2021
- origin_nonce,
2022
- sponsor_address,
2023
- sponsor_nonce,
2024
- tx_fee,
2025
- length,
2026
- consensus_hash,
2027
- block_header_hash,
2028
- height,
2029
- accept_time,
2030
- last_known_sponsor_nonce,
2031
- last_known_origin_nonce
2032
- FROM mempool WHERE {0}_address = ?1 AND {0}_nonce = ?2" ,
2018
+ "SELECT * FROM mempool WHERE {0}_address = ?1 AND {0}_nonce = ?2" ,
2033
2019
if is_origin { "origin" } else { "sponsor" }
2034
2020
) ;
2035
2021
let args = params ! [ addr. to_string( ) , u64_to_sql( nonce) ?] ;
Original file line number Diff line number Diff line change @@ -1381,7 +1381,7 @@ fn mempool_do_not_replace_tx() {
1381
1381
. unwrap_err ( ) ;
1382
1382
assert ! ( match err_resp {
1383
1383
MemPoolRejection :: ConflictingNonceInMempool => true ,
1384
- _ => false ,
1384
+ e => panic! ( "Failed: {e:?}" ) ,
1385
1385
} ) ;
1386
1386
1387
1387
assert ! ( MemPoolDB :: db_has_tx( & mempool_tx, & prior_txid) . unwrap( ) ) ;
You can’t perform that action at this time.
0 commit comments