solana-with-rpc-optimizations/local-cluster
behzad nouri 8d980f07ba
uses Option<Slot> for SlotMeta.parent_slot (#21808)
SlotMeta.parent_slot for the head of a detached chain of slots is
unknown and that is indicated by u64::MAX which lacks type-safety:
https://github.com/solana-labs/solana/blob/6c108c8fc/ledger/src/blockstore_meta.rs#L203-L205

The commit changes the type to Option<Slot>. Backward compatibility is
maintained by customizing serde serialize/deserialize implementations.
2021-12-14 18:57:11 +00:00
..
src Fixup flaky tests (#21617) 2021-12-06 17:14:38 -05:00
tests uses Option<Slot> for SlotMeta.parent_slot (#21808) 2021-12-14 18:57:11 +00:00
.gitignore
Cargo.toml chore: bump itertools from 0.10.1 to 0.10.3 (#21643) 2021-12-06 23:23:26 -07:00