@@ -395,7 +395,8 @@ async fn update_tables_from_block_reward<T: ApiServerStorageWrite>(
395395            | TxOutput :: DataDeposit ( _) 
396396            | TxOutput :: DelegateStaking ( _,  _) 
397397            | TxOutput :: IssueFungibleToken ( _) 
398-             | TxOutput :: IssueNft ( _,  _,  _)  => { } 
398+             | TxOutput :: IssueNft ( _,  _,  _) 
399+             | TxOutput :: Htlc ( _,  _)  => { } 
399400            TxOutput :: ProduceBlockFromStake ( _,  _)  => { 
400401                set_utxo ( 
401402                    outpoint, 
@@ -569,7 +570,8 @@ async fn calculate_fees<T: ApiServerStorageWrite>(
569570                | TxOutput :: DataDeposit ( _) 
570571                | TxOutput :: DelegateStaking ( _,  _) 
571572                | TxOutput :: CreateDelegationId ( _,  _) 
572-                 | TxOutput :: ProduceBlockFromStake ( _,  _)  => None , 
573+                 | TxOutput :: ProduceBlockFromStake ( _,  _) 
574+                 | TxOutput :: Htlc ( _,  _)  => None , 
573575            } ) 
574576        } ) 
575577        . collect ( ) ; 
@@ -601,7 +603,8 @@ async fn calculate_fees<T: ApiServerStorageWrite>(
601603                    | TxOutput :: DelegateStaking ( _,  _) 
602604                    | TxOutput :: CreateDelegationId ( _,  _) 
603605                    | TxOutput :: IssueFungibleToken ( _) 
604-                     | TxOutput :: ProduceBlockFromStake ( _,  _)  => None , 
606+                     | TxOutput :: ProduceBlockFromStake ( _,  _) 
607+                     | TxOutput :: Htlc ( _,  _)  => None , 
605608                } , 
606609                TxInput :: Account ( _)  => None , 
607610                TxInput :: AccountCommand ( _,  cmd)  => match  cmd { 
@@ -726,7 +729,8 @@ async fn prefetch_pool_amounts<T: ApiServerStorageWrite>(
726729                | TxOutput :: CreateDelegationId ( _,  _) 
727730                | TxOutput :: DelegateStaking ( _,  _) 
728731                | TxOutput :: IssueNft ( _,  _,  _) 
729-                 | TxOutput :: IssueFungibleToken ( _) , 
732+                 | TxOutput :: IssueFungibleToken ( _) 
733+                 | TxOutput :: Htlc ( _,  _) , 
730734            )  => { } 
731735            None  => { } 
732736        } 
@@ -1103,7 +1107,8 @@ async fn update_tables_from_transaction_inputs<T: ApiServerStorageWrite>(
11031107                        | TxOutput :: DataDeposit ( _) 
11041108                        | TxOutput :: CreateDelegationId ( _,  _) 
11051109                        | TxOutput :: DelegateStaking ( _,  _) 
1106-                         | TxOutput :: IssueFungibleToken ( _)  => { } 
1110+                         | TxOutput :: IssueFungibleToken ( _) 
1111+                         | TxOutput :: Htlc ( _,  _)  => { } 
11071112                        TxOutput :: CreateStakePool ( pool_id,  _) 
11081113                        | TxOutput :: ProduceBlockFromStake ( _,  pool_id)  => { 
11091114                            let  pool_data = db_tx
@@ -1196,6 +1201,7 @@ async fn update_tables_from_transaction_inputs<T: ApiServerStorageWrite>(
11961201                            ) 
11971202                            . await ; 
11981203                        } 
1204+                         TxOutput :: Htlc ( _,  _)  => { }  // TODO(HTLC) 
11991205                        TxOutput :: LockThenTransfer ( output_value,  destination,  _) 
12001206                        | TxOutput :: Transfer ( output_value,  destination)  => { 
12011207                            let  address = Address :: < Destination > :: new ( & chain_config,  destination) 
@@ -1610,6 +1616,7 @@ async fn update_tables_from_transaction_outputs<T: ApiServerStorageWrite>(
16101616                        . expect ( "Unable to set locked utxo" ) ; 
16111617                } 
16121618            } 
1619+             TxOutput :: Htlc ( _,  _)  => { }  // TODO(HTLC) 
16131620        } 
16141621    } 
16151622
@@ -1809,5 +1816,6 @@ fn get_tx_output_destination(txo: &TxOutput) -> Option<&Destination> {
18091816        | TxOutput :: Burn ( _) 
18101817        | TxOutput :: DelegateStaking ( _,  _) 
18111818        | TxOutput :: DataDeposit ( _)  => None , 
1819+         TxOutput :: Htlc ( _,  _)  => None ,  // TODO(HTLC) 
18121820    } 
18131821} 
0 commit comments