mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-25 23:29:58 -07:00
git: reset
This commit is contained in:
14
parser/src/structs/sent_data.rs
Normal file
14
parser/src/structs/sent_data.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use super::WAmount;
|
||||
|
||||
#[derive(Default, Debug)]
|
||||
pub struct SentData {
|
||||
pub volume: WAmount,
|
||||
pub count: u32,
|
||||
}
|
||||
|
||||
impl SentData {
|
||||
pub fn send(&mut self, amount: WAmount) {
|
||||
self.volume += amount;
|
||||
self.count += 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user