@@ -980,7 +980,7 @@ pub mod test {
980980 use std:: cmp:: Ordering ;
981981
982982 use crate :: client:: { Balance , RegularKeyOwner , Seq , TestBlockChainClient } ;
983- use ckey:: { Address , Generator , KeyPair , Random } ;
983+ use ckey:: { Generator , KeyPair , Random } ;
984984 use ctypes:: transaction:: { Action , AssetMintOutput , Transaction } ;
985985 use primitives:: H160 ;
986986
@@ -1421,7 +1421,8 @@ pub mod test {
14211421 fn db_backup_and_recover ( ) {
14221422 //setup test_client
14231423 let test_client = TestBlockChainClient :: new ( ) ;
1424- let default_addr = Address :: default ( ) ;
1424+ let keypair = Random . generate ( ) . unwrap ( ) ;
1425+ let default_addr = public_to_address ( keypair. public ( ) ) ;
14251426 test_client. set_seq ( default_addr, 4u64 ) ;
14261427 test_client. set_balance ( default_addr, u64:: max_value ( ) ) ;
14271428
@@ -1436,7 +1437,6 @@ pub mod test {
14361437 balance : test_client. latest_balance ( & a) ,
14371438 }
14381439 } ;
1439- let keypair = Random . generate ( ) . unwrap ( ) ;
14401440 let no_timelock = TxTimelock {
14411441 block : None ,
14421442 timestamp : None ,
@@ -1480,6 +1480,7 @@ pub mod test {
14801480
14811481 assert_eq ! ( mem_pool_recovered. first_seqs, mem_pool. first_seqs) ;
14821482 assert_eq ! ( mem_pool_recovered. next_seqs, mem_pool. next_seqs) ;
1483+ assert_eq ! ( mem_pool_recovered. by_signer_public, mem_pool. by_signer_public) ;
14831484 assert_eq ! ( mem_pool_recovered. is_local_account, mem_pool. is_local_account) ;
14841485 assert_eq ! ( mem_pool_recovered. next_transaction_id, mem_pool. next_transaction_id) ;
14851486 assert_eq ! ( mem_pool_recovered. by_hash, mem_pool. by_hash) ;
0 commit comments