@@ -20,10 +20,10 @@ use spacedb::{
2020use spaces_protocol:: {
2121 bitcoin:: { BlockHash , OutPoint } ,
2222 constants:: { ChainAnchor } ,
23- hasher:: { KeyHash , OutpointKey } ,
23+ hasher:: { KeyHash } ,
2424} ;
2525use spaces_protocol:: slabel:: SLabel ;
26- use spaces_ptr:: { Commitment , CommitmentKey , FullPtrOut , PtrOut , PtrSource , RegistryKey , RegistrySptrKey } ;
26+ use spaces_ptr:: { Commitment , CommitmentKey , FullPtrOut , PtrOut , PtrSource , RegistryKey , RegistrySptrKey , PtrOutpointKey } ;
2727use spaces_ptr:: sptr:: Sptr ;
2828use crate :: store:: { EncodableOutpoint , Sha256 } ;
2929
@@ -110,7 +110,7 @@ impl PtrStore {
110110}
111111
112112pub trait PtrChainState {
113- fn insert_ptrout ( & self , key : OutpointKey , ptrout : PtrOut ) ;
113+ fn insert_ptrout ( & self , key : PtrOutpointKey , ptrout : PtrOut ) ;
114114 fn insert_commitment ( & self , key : CommitmentKey , commitment : Commitment ) ;
115115 fn insert_registry ( & self , key : RegistryKey , state_root : Hash ) ;
116116 fn insert_registry_delegation ( & self , key : RegistrySptrKey , space : SLabel ) ;
@@ -124,7 +124,7 @@ pub trait PtrChainState {
124124}
125125
126126impl PtrChainState for PtrLiveSnapshot {
127- fn insert_ptrout ( & self , key : OutpointKey , ptrout : PtrOut ) {
127+ fn insert_ptrout ( & self , key : PtrOutpointKey , ptrout : PtrOut ) {
128128 self . insert ( key, ptrout)
129129 }
130130
@@ -351,7 +351,7 @@ impl PtrSource for PtrLiveSnapshot {
351351 & mut self ,
352352 outpoint : & OutPoint ,
353353 ) -> spaces_protocol:: errors:: Result < Option < PtrOut > > {
354- let h = OutpointKey :: from_outpoint :: < Sha256 > ( * outpoint) ;
354+ let h = PtrOutpointKey :: from_outpoint :: < Sha256 > ( * outpoint) ;
355355 let result = self . get ( h) . map_err ( |err| {
356356 spaces_protocol:: errors:: Error :: IO ( format ! ( "getptrout: {}" , err. to_string( ) ) )
357357 } ) ?;
0 commit comments