@@ -10,8 +10,8 @@ use chainhook_types::*;
1010use hiro_system_kit:: slog;
1111use rocket:: serde:: json:: Value as JsonValue ;
1212use rocket:: serde:: Deserialize ;
13+ use stacks_rpc_client:: clarity:: codec:: StacksMessageCodec ;
1314use stacks_rpc_client:: clarity:: codec:: { StacksTransaction , TransactionAuth , TransactionPayload } ;
14- use stacks_rpc_client:: clarity:: stacks_common:: codec:: StacksMessageCodec ;
1515use stacks_rpc_client:: clarity:: vm:: types:: { SequenceData , Value as ClarityValue } ;
1616use std:: collections:: { BTreeMap , HashMap , HashSet } ;
1717use std:: convert:: TryInto ;
@@ -332,7 +332,7 @@ pub fn standardize_stacks_block(
332332 . into ( ) ;
333333 let current_len = u64:: saturating_sub (
334334 block. burn_block_height ,
335- 1 + chain_ctx. pox_info . first_burnchain_block_height ,
335+ 1 + ( chain_ctx. pox_info . first_burnchain_block_height as u64 ) ,
336336 ) ;
337337 let pox_cycle_id: u32 = ( current_len / pox_cycle_length) . try_into ( ) . unwrap_or ( 0 ) ;
338338 let mut events: HashMap < & String , Vec < & NewEvent > > = HashMap :: new ( ) ;
@@ -818,10 +818,16 @@ pub fn get_tx_description(
818818 StacksTransactionKind :: ContractDeployment ( data) ,
819819 )
820820 }
821- TransactionPayload :: Coinbase ( _, _) => {
821+ TransactionPayload :: Coinbase ( _, _, _ ) => {
822822 ( format ! ( "coinbase" ) , StacksTransactionKind :: Coinbase )
823823 }
824- _ => ( format ! ( "other" ) , StacksTransactionKind :: Unsupported ) ,
824+ TransactionPayload :: TenureChange ( _) => (
825+ format ! ( "tenure change" ) ,
826+ StacksTransactionKind :: TenureChange ,
827+ ) ,
828+ TransactionPayload :: PoisonMicroblock ( _, _) => {
829+ unimplemented ! ( )
830+ }
825831 } ;
826832 Ok ( ( description, tx_type, fee, nonce, sender, sponsor) )
827833}
0 commit comments