@@ -120,7 +120,7 @@ pub struct Account<K> {
120120 account_info : AccountInfo ,
121121}
122122
123- impl < K : AccountKeyChains > Account < K > {
123+ impl < K : AccountKeyChains + Sync > Account < K > {
124124 /// Create a new account by providing a key chain
125125 pub fn new (
126126 chain_config : Arc < ChainConfig > ,
@@ -654,7 +654,7 @@ impl<K: AccountKeyChains> Account<K> {
654654
655655 pub fn process_send_request_and_sign (
656656 & mut self ,
657- db_tx : & mut impl WalletStorageWriteUnlocked ,
657+ db_tx : & mut impl WalletStorageWriteLocked ,
658658 request : SendRequest ,
659659 inputs : SelectedInputs ,
660660 change_addresses : BTreeMap < Currency , Address < Destination > > ,
@@ -676,7 +676,7 @@ impl<K: AccountKeyChains> Account<K> {
676676
677677 fn decommission_stake_pool_impl (
678678 & mut self ,
679- db_tx : & mut impl WalletStorageWriteUnlocked ,
679+ db_tx : & mut impl WalletStorageWriteLocked ,
680680 pool_id : PoolId ,
681681 pool_balance : Amount ,
682682 output_address : Option < Destination > ,
@@ -739,7 +739,7 @@ impl<K: AccountKeyChains> Account<K> {
739739
740740 pub fn decommission_stake_pool (
741741 & mut self ,
742- db_tx : & mut impl WalletStorageWriteUnlocked ,
742+ db_tx : & mut impl WalletStorageWriteLocked ,
743743 pool_id : PoolId ,
744744 pool_balance : Amount ,
745745 output_address : Option < Destination > ,
@@ -756,7 +756,7 @@ impl<K: AccountKeyChains> Account<K> {
756756
757757 pub fn decommission_stake_pool_request (
758758 & mut self ,
759- db_tx : & mut impl WalletStorageWriteUnlocked ,
759+ db_tx : & mut impl WalletStorageWriteLocked ,
760760 pool_id : PoolId ,
761761 pool_balance : Amount ,
762762 output_address : Option < Destination > ,
@@ -900,7 +900,7 @@ impl<K: AccountKeyChains> Account<K> {
900900
901901 pub fn create_htlc_tx (
902902 & mut self ,
903- db_tx : & mut impl WalletStorageWriteUnlocked ,
903+ db_tx : & mut impl WalletStorageWriteLocked ,
904904 output_value : OutputValue ,
905905 htlc : HashedTimelockContract ,
906906 median_time : BlockTimestamp ,
@@ -923,7 +923,7 @@ impl<K: AccountKeyChains> Account<K> {
923923
924924 pub fn create_order_tx (
925925 & mut self ,
926- db_tx : & mut impl WalletStorageWriteUnlocked ,
926+ db_tx : & mut impl WalletStorageWriteLocked ,
927927 ask_value : OutputValue ,
928928 give_value : OutputValue ,
929929 conclude_address : Address < Destination > ,
@@ -949,7 +949,7 @@ impl<K: AccountKeyChains> Account<K> {
949949
950950 pub fn create_conclude_order_tx (
951951 & mut self ,
952- db_tx : & mut impl WalletStorageWriteUnlocked ,
952+ db_tx : & mut impl WalletStorageWriteLocked ,
953953 order_id : OrderId ,
954954 order_info : RpcOrderInfo ,
955955 output_address : Option < Destination > ,
@@ -1002,7 +1002,7 @@ impl<K: AccountKeyChains> Account<K> {
10021002 #[ allow( clippy:: too_many_arguments) ]
10031003 pub fn create_fill_order_tx (
10041004 & mut self ,
1005- db_tx : & mut impl WalletStorageWriteUnlocked ,
1005+ db_tx : & mut impl WalletStorageWriteLocked ,
10061006 order_id : OrderId ,
10071007 order_info : RpcOrderInfo ,
10081008 fill_amount_in_ask_currency : Amount ,
@@ -1058,7 +1058,7 @@ impl<K: AccountKeyChains> Account<K> {
10581058
10591059 pub fn create_issue_nft_tx (
10601060 & mut self ,
1061- db_tx : & mut impl WalletStorageWriteUnlocked ,
1061+ db_tx : & mut impl WalletStorageWriteLocked ,
10621062 nft_issue_arguments : IssueNftArguments ,
10631063 median_time : BlockTimestamp ,
10641064 fee_rate : CurrentFeeRate ,
@@ -1119,7 +1119,7 @@ impl<K: AccountKeyChains> Account<K> {
11191119
11201120 pub fn mint_tokens (
11211121 & mut self ,
1122- db_tx : & mut impl WalletStorageWriteUnlocked ,
1122+ db_tx : & mut impl WalletStorageWriteLocked ,
11231123 token_info : & UnconfirmedTokenInfo ,
11241124 address : Address < Destination > ,
11251125 amount : Amount ,
@@ -1147,7 +1147,7 @@ impl<K: AccountKeyChains> Account<K> {
11471147
11481148 pub fn unmint_tokens (
11491149 & mut self ,
1150- db_tx : & mut impl WalletStorageWriteUnlocked ,
1150+ db_tx : & mut impl WalletStorageWriteLocked ,
11511151 token_info : & UnconfirmedTokenInfo ,
11521152 amount : Amount ,
11531153 median_time : BlockTimestamp ,
@@ -1174,7 +1174,7 @@ impl<K: AccountKeyChains> Account<K> {
11741174
11751175 pub fn lock_token_supply (
11761176 & mut self ,
1177- db_tx : & mut impl WalletStorageWriteUnlocked ,
1177+ db_tx : & mut impl WalletStorageWriteLocked ,
11781178 token_info : & UnconfirmedTokenInfo ,
11791179 median_time : BlockTimestamp ,
11801180 fee_rate : CurrentFeeRate ,
@@ -1198,7 +1198,7 @@ impl<K: AccountKeyChains> Account<K> {
11981198
11991199 pub fn freeze_token (
12001200 & mut self ,
1201- db_tx : & mut impl WalletStorageWriteUnlocked ,
1201+ db_tx : & mut impl WalletStorageWriteLocked ,
12021202 token_info : & UnconfirmedTokenInfo ,
12031203 is_token_unfreezable : IsTokenUnfreezable ,
12041204 median_time : BlockTimestamp ,
@@ -1225,7 +1225,7 @@ impl<K: AccountKeyChains> Account<K> {
12251225
12261226 pub fn unfreeze_token (
12271227 & mut self ,
1228- db_tx : & mut impl WalletStorageWriteUnlocked ,
1228+ db_tx : & mut impl WalletStorageWriteLocked ,
12291229 token_info : & UnconfirmedTokenInfo ,
12301230 median_time : BlockTimestamp ,
12311231 fee_rate : CurrentFeeRate ,
@@ -1249,7 +1249,7 @@ impl<K: AccountKeyChains> Account<K> {
12491249
12501250 pub fn change_token_authority (
12511251 & mut self ,
1252- db_tx : & mut impl WalletStorageWriteUnlocked ,
1252+ db_tx : & mut impl WalletStorageWriteLocked ,
12531253 token_info : & UnconfirmedTokenInfo ,
12541254 address : Address < Destination > ,
12551255 median_time : BlockTimestamp ,
@@ -1276,7 +1276,7 @@ impl<K: AccountKeyChains> Account<K> {
12761276
12771277 pub fn change_token_metadata_uri (
12781278 & mut self ,
1279- db_tx : & mut impl WalletStorageWriteUnlocked ,
1279+ db_tx : & mut impl WalletStorageWriteLocked ,
12801280 token_info : & UnconfirmedTokenInfo ,
12811281 metadata_uri : Vec < u8 > ,
12821282 median_time : BlockTimestamp ,
@@ -1304,7 +1304,7 @@ impl<K: AccountKeyChains> Account<K> {
13041304 authority : Destination ,
13051305 tx_input : TxInput ,
13061306 outputs : Vec < TxOutput > ,
1307- db_tx : & mut impl WalletStorageWriteUnlocked ,
1307+ db_tx : & mut impl WalletStorageWriteLocked ,
13081308 median_time : BlockTimestamp ,
13091309 fee_rate : CurrentFeeRate ,
13101310 ) -> Result < SendRequest , WalletError > {
@@ -2128,7 +2128,7 @@ struct PreselectedInputAmounts {
21282128 pub burn : Amount ,
21292129}
21302130
2131- impl < K : AccountKeyChains + VRFAccountKeyChains > Account < K > {
2131+ impl < K : AccountKeyChains + VRFAccountKeyChains + Sync > Account < K > {
21322132 fn get_vrf_public_key (
21332133 & mut self ,
21342134 db_tx : & mut impl WalletStorageWriteLocked ,
@@ -2199,7 +2199,7 @@ impl<K: AccountKeyChains + VRFAccountKeyChains> Account<K> {
21992199
22002200 pub fn create_stake_pool_tx (
22012201 & mut self ,
2202- db_tx : & mut impl WalletStorageWriteUnlocked ,
2202+ db_tx : & mut impl WalletStorageWriteLocked ,
22032203 stake_pool_arguments : StakePoolDataArguments ,
22042204 median_time : BlockTimestamp ,
22052205 fee_rate : CurrentFeeRate ,
0 commit comments