mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-02 13:23:10 +00:00
setup for utxo tree
This commit is contained in:
parent
85102cb893
commit
e4752000d4
@ -72,3 +72,23 @@ impl Default for UTXOSparseMerkleTree {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use storage::{merkle_tree_public::TreeHashType, AccountId};
|
||||
use crate::utxo_core::{UTXO, UTXOPayload};
|
||||
|
||||
fn sample_utxo_payload() -> UTXOPayload {
|
||||
UTXOPayload {
|
||||
owner: AccountId::default(),
|
||||
asset: vec![1, 2, 3],
|
||||
}
|
||||
}
|
||||
|
||||
fn sample_utxo() -> UTXO {
|
||||
UTXO::create_utxo_from_payload(sample_utxo_payload())
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user