[−][src]Struct godcoin::blockchain::Blockchain
Methods
impl Blockchain
[src]
pub fn new(blocklog_loc: &Path, index_loc: &Path) -> Self
[src]
Creates a new Blockchain
with an associated indexer and block log based on the
provided paths.
pub fn is_empty(&self) -> bool
[src]
pub fn indexer(&self) -> Arc<Indexer>
[src]
pub fn index_status(&self) -> IndexStatus
[src]
pub fn reindex(&self, opts: ReindexOpts)
[src]
pub fn get_properties(&self) -> Properties
[src]
pub fn get_owner(&self) -> TxVariant
[src]
pub fn get_chain_height(&self) -> u64
[src]
pub fn get_chain_head(&self) -> Arc<Block>
[src]
pub fn get_block(&self, height: u64) -> Option<Arc<Block>>
[src]
pub fn get_filtered_block(
&self,
height: u64,
filter: &BlockFilter
) -> Option<FilteredBlock>
[src]
&self,
height: u64,
filter: &BlockFilter
) -> Option<FilteredBlock>
pub fn get_address_info(
&self,
addr: &ScriptHash,
additional_txs: &[TxVariant]
) -> Option<AddressInfo>
[src]
&self,
addr: &ScriptHash,
additional_txs: &[TxVariant]
) -> Option<AddressInfo>
pub fn get_address_fee(
&self,
addr: &ScriptHash,
additional_txs: &[TxVariant]
) -> Option<Asset>
[src]
&self,
addr: &ScriptHash,
additional_txs: &[TxVariant]
) -> Option<Asset>
pub fn get_network_fee(&self) -> Option<Asset>
[src]
pub fn get_balance(
&self,
addr: &ScriptHash,
additional_txs: &[TxVariant]
) -> Option<Asset>
[src]
&self,
addr: &ScriptHash,
additional_txs: &[TxVariant]
) -> Option<Asset>
pub fn insert_block(&self, block: Block) -> Result<(), BlockErr>
[src]
pub fn verify_tx(
&self,
data: &TxPrecompData,
additional_txs: &[TxVariant],
skip_flags: SkipFlags
) -> Result<(), TxErr>
[src]
&self,
data: &TxPrecompData,
additional_txs: &[TxVariant],
skip_flags: SkipFlags
) -> Result<(), TxErr>
pub fn create_genesis_block(&self, minter_key: KeyPair) -> GenesisBlockInfo
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Blockchain
impl Send for Blockchain
impl Sync for Blockchain
impl Unpin for Blockchain
impl UnwindSafe for Blockchain
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,