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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
crate::ix!();
/**
| CoinsView backed by another CoinsView
|
*/
pub struct CoinsViewBacked {
impls: Box<dyn CoinsView>,
base: *mut dyn CoinsView,
}
impl From<*mut dyn CoinsView> for CoinsViewBacked {
fn from(view_in: *mut dyn CoinsView) -> Self {
todo!();
/*
: base(viewIn),
*/
}
}
impl CoinsViewBacked {
fn set_backend(&mut self, view_in: &mut dyn CoinsView) {
todo!();
/*
base = &viewIn;
*/
}
}
impl GetCoin for CoinsViewBacked {
fn get_coin(&self,
outpoint: &OutPoint,
coin: &mut Coin) -> bool {
todo!();
/*
return base->GetCoin(outpoint, coin);
*/
}
}
impl HaveCoin for CoinsViewBacked {
fn have_coin(&self, outpoint: &OutPoint) -> bool {
todo!();
/*
return base->HaveCoin(outpoint);
*/
}
}
impl GetBestBlock for CoinsViewBacked {
fn get_best_block(&self) -> u256 {
todo!();
/*
return base->GetBestBlock();
*/
}
}
impl GetHeadBlocks for CoinsViewBacked {
fn get_head_blocks(&self) -> Vec<u256> {
todo!();
/*
return base->GetHeadBlocks();
*/
}
}
impl BatchWrite for CoinsViewBacked {
fn batch_write(&mut self,
map_coins: &mut CoinsMap,
hash_block: &u256) -> bool {
todo!();
/*
return base->BatchWrite(mapCoins, hashBlock);
*/
}
}
impl Cursor for CoinsViewBacked {
fn cursor(&self) -> Option<Box<CoinsViewCursor>> {
todo!();
/*
return base->Cursor();
*/
}
}
impl EstimateSize for CoinsViewBacked {
fn estimate_size(&self) -> usize {
todo!();
/*
return base->EstimateSize();
*/
}
}