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
crate::ix!();
/**
| extracts a transaction hash from
|
| TxMemPoolEntry or CTransactionRef
|
*/
pub struct MemPoolEntryTxid {
}
pub mod mempool_entry_txid {
use super::*;
pub type ResultType = u256;
}
impl MemPoolEntryTxid {
pub fn invoke_tx_mempool_entry(&self, entry: &TxMemPoolEntry) -> mempool_entry_txid::ResultType {
todo!();
/*
return entry.GetTx().GetHash();
*/
}
pub fn invoke_txn(&self, tx: &TransactionRef) -> mempool_entry_txid::ResultType {
todo!();
/*
return tx->GetHash();
*/
}
}
/**
| extracts a transaction witness-hash
| from TxMemPoolEntry or TransactionRef
|
*/
pub struct MemPoolEntryWTxid {
}
pub mod mempool_entry_wtxid {
use super::*;
pub type ResultType = u256;
}
impl MemPoolEntryWTxid {
pub fn invoke_tx_mempool_entry(&self, entry: &TxMemPoolEntry) -> mempool_entry_wtxid::ResultType {
todo!();
/*
return entry.GetTx().GetWitnessHash();
*/
}
pub fn invoke_txn(&self, tx: &TransactionRef) -> mempool_entry_wtxid::ResultType {
todo!();
/*
return tx->GetWitnessHash();
*/
}
}