rpc/types: add missing defaults to fields (#361)
Some checks are pending
CI / fmt (push) Waiting to run
CI / typo (push) Waiting to run
CI / ci (macos-latest, stable, bash) (push) Waiting to run
CI / ci (ubuntu-latest, stable, bash) (push) Waiting to run
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Waiting to run
Doc / deploy (push) Blocked by required conditions
Doc / build (push) Waiting to run

* add defaults to fields

* Update rpc/types/src/bin.rs

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>

---------

Co-authored-by: hinto-janai <hinto.janai@protonmail.com>
This commit is contained in:
Boog900 2025-01-08 01:58:43 +00:00 committed by GitHub
parent 80369b82d2
commit 10000b4b34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,8 +132,9 @@ define_request_and_response! {
start_height: u64,
current_height: u64,
output_indices: Vec<BlockOutputIndices>,
daemon_time: u64,
pool_info: PoolInfo,
daemon_time: u64 = default_zero::<u64>(), "default_zero",
// FIXME: use `default()` after <https://github.com/Cuprate/cuprate/pull/355>
pool_info: PoolInfo = PoolInfo::None, "PoolInfo::default",
}
}