Fix build

This commit is contained in:
Greg Fitzgerald 2019-03-29 14:56:29 -06:00
parent 0887832b00
commit 3b516c0710
1 changed files with 7 additions and 3 deletions

View File

@ -358,7 +358,7 @@ impl Bank {
Ok(_) => { Ok(_) => {
if !tx.signatures.is_empty() { if !tx.signatures.is_empty() {
status_cache.insert( status_cache.insert(
&tx.recent_blockhash, &tx.message().recent_blockhash,
&tx.signatures[0], &tx.signatures[0],
self.slot(), self.slot(),
Ok(()), Ok(()),
@ -371,7 +371,7 @@ impl Bank {
Err(e) => { Err(e) => {
if !tx.signatures.is_empty() { if !tx.signatures.is_empty() {
status_cache.insert( status_cache.insert(
&tx.recent_blockhash, &tx.message().recent_blockhash,
&tx.signatures[0], &tx.signatures[0],
self.slot(), self.slot(),
Err(e.clone()), Err(e.clone()),
@ -529,7 +529,11 @@ impl Bank {
} }
if lock_res.is_ok() if lock_res.is_ok()
&& rcache && rcache
.get_signature_status(&tx.signatures[0], &tx.recent_blockhash, &ancestors) .get_signature_status(
&tx.signatures[0],
&tx.message().recent_blockhash,
&ancestors,
)
.is_some() .is_some()
{ {
error_counters.duplicate_signature += 1; error_counters.duplicate_signature += 1;