Make sure banking stage is recording with the same bank that it read (#3447)

* make sure banking stage is recording with the same bank that it read with
This commit is contained in:
anatoly yakovenko
2019-03-22 14:17:39 -07:00
committed by GitHub
parent 60dfb35924
commit 52f6c33ff9
3 changed files with 74 additions and 17 deletions

View File

@@ -138,7 +138,11 @@ mod tests {
// send some data
let h1 = hash(b"hello world!");
let tx = test_tx();
poh_recorder.lock().unwrap().record(h1, vec![tx]).unwrap();
poh_recorder
.lock()
.unwrap()
.record(bank.slot(), h1, vec![tx])
.unwrap();
if exit.load(Ordering::Relaxed) {
break Ok(());