Set epoch schedule in set_root in leader schedule cache (#4821)

This commit is contained in:
carllin
2019-06-26 00:19:48 -07:00
committed by GitHub
parent 30592f2b12
commit d6737b8cc9
4 changed files with 58 additions and 23 deletions

View File

@ -328,12 +328,6 @@ mod test {
blob.set_id(&leader_pubkey);
blob.sign(&leader_keypair);
// without a Bank and blobs not from me, blob gets thrown out
assert_eq!(
should_retransmit_and_persist(&blob, None, &cache, &me_id),
false
);
// with a Bank for slot 0, blob continues
assert_eq!(
should_retransmit_and_persist(&blob, Some(bank.clone()), &cache, &me_id),