We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 633d0f6 commit 7cb5b20Copy full SHA for 7cb5b20
validations/src/validations.rs
@@ -136,12 +136,14 @@ pub fn validate_commit_collateral(
136
committer,
137
|_| (),
138
|(output_pointer, (vto, _))| {
139
- let utxo_block_number =
140
- utxo_diff.included_in_block_number(output_pointer).unwrap();
141
- if utxo_block_number
142
- < block_number.saturating_sub((2 * superblock_period).into())
+ if let Some(utxo_block_number) =
+ utxo_diff.included_in_block_number(output_pointer)
143
{
144
- balance += vto.value
+ if utxo_block_number
+ < block_number.saturating_sub((2 * superblock_period).into())
+ {
145
+ balance += vto.value
146
+ }
147
}
148
},
149
);
0 commit comments