Limit targets to 4 in bench-tps
Transaction got bigger so can only fit 4 targets in a Transaction now.
This commit is contained in:
parent
e791d0f74d
commit
71336965a6
@ -290,7 +290,7 @@ fn do_tx_transfers(
|
||||
}
|
||||
}
|
||||
|
||||
const MAX_SPENDS_PER_TX: usize = 5;
|
||||
const MAX_SPENDS_PER_TX: usize = 4;
|
||||
fn verify_transfer(client: &mut ThinClient, tx: &Transaction) -> bool {
|
||||
if client.poll_for_signature(&tx.signatures[0]).is_err() {
|
||||
println!("no signature");
|
||||
|
@ -10,6 +10,7 @@ use cluster_info::{ClusterInfo, ClusterInfoError, NodeInfo};
|
||||
use hash::Hash;
|
||||
use log::Level;
|
||||
use ncp::Ncp;
|
||||
use packet::PACKET_DATA_SIZE;
|
||||
use result::{Error, Result};
|
||||
use rpc_request::RpcRequest;
|
||||
use serde_json;
|
||||
@ -69,6 +70,7 @@ impl ThinClient {
|
||||
/// does not wait for a response.
|
||||
pub fn transfer_signed(&self, tx: &Transaction) -> io::Result<Signature> {
|
||||
let data = serialize(&tx).expect("serialize Transaction in pub fn transfer_signed");
|
||||
assert!(data.len() < PACKET_DATA_SIZE);
|
||||
self.transactions_socket
|
||||
.send_to(&data, &self.transactions_addr)?;
|
||||
Ok(tx.signatures[0])
|
||||
|
Loading…
x
Reference in New Issue
Block a user