1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
crate::ix!();
/**
| Cursor for iterating over CoinsView
| state
|
*/
pub struct CoinsViewCursor {
hash_block: u256,
}
pub mod coins_view_cursor {
use super::*;
pub trait Interface {
fn get_key(&self, key: &mut OutPoint) -> bool;
fn get_value(&self, coin: &mut Coin) -> bool;
fn get_value_size(&self) -> u32;
fn valid(&self) -> bool;
fn next(&mut self);
}
}
impl From<&u256> for CoinsViewCursor {
fn from(hash_block_in: &u256) -> Self {
todo!();
/*
: hash_block(hashBlockIn),
*/
}
}
impl CoinsViewCursor {
/**
| Get best block at the time this cursor
| was created
|
*/
pub fn get_best_block(&self) -> &u256 {
todo!();
/*
return hashBlock;
*/
}
}