Open smoelius opened 4 years ago
https://github.com/trailofbits/x-audit-blockstack-core/blob/e2d3d5bae539d242851620e28129af6c4a9de642/src/chainstate/stacks/index/marf.rs#L502-L504 It appears the above could be written more simply as:
if let Some(miner_tip) = miner_tip { file_storage.set_miner_tip(*miner_tip); }
A similar problem appears here: https://github.com/trailofbits/x-audit-blockstack-core/blob/e2d3d5bae539d242851620e28129af6c4a9de642/src/vm/database/marf.rs#L141
https://github.com/trailofbits/x-audit-blockstack-core/blob/e2d3d5bae539d242851620e28129af6c4a9de642/src/chainstate/stacks/index/marf.rs#L502-L504 It appears the above could be written more simply as: