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