Add parameter to allow setting max-retries for SendTransaction rpc (#19387)

* Add parameter to cap rpc send retries for a tx

* Add parameter to docs
This commit is contained in:
Tyera Eulberg
2021-08-24 22:44:13 -06:00
committed by GitHub
parent d559426373
commit 7482861f4b
5 changed files with 107 additions and 3 deletions

View File

@@ -167,6 +167,7 @@ impl Banks for BanksServer {
serialize(&transaction).unwrap(),
last_valid_block_height,
None,
None,
);
self.transaction_sender.send(info).unwrap();
}
@@ -257,6 +258,7 @@ impl Banks for BanksServer {
serialize(&transaction).unwrap(),
last_valid_block_height,
None,
None,
);
self.transaction_sender.send(info).unwrap();
self.poll_signature_status(&signature, blockhash, last_valid_block_height, commitment)