Fix build
This commit is contained in:
parent
0887832b00
commit
3b516c0710
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue