Skip to content

Commit e9a022e

Browse files
committed
serial
1 parent 1373743 commit e9a022e

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

bin/cli/src/main.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ struct ProveArgs {
5151
/// The RPC URL for the network.
5252
#[arg(long)]
5353
rpc_url: String,
54-
/// The estimated throughput of the prover.
54+
/// The amount of proving gas units (PGUs) per second your prover can process.
5555
#[arg(long)]
5656
throughput: f64,
57-
/// The bid amount for the prover.
57+
/// The $PROVE price per billion proving gas units (PGUs) your prover is willing to bid.
5858
#[arg(long)]
59-
bid_amount: u64,
59+
bid: f64,
6060
/// The private key for the prover.
6161
#[arg(long)]
6262
private_key: String,
@@ -152,7 +152,7 @@ async fn main() -> Result<()> {
152152
let results_data = vec![
153153
CalibrationResultsTable {
154154
name: "Estimated Throughput".to_string(),
155-
value: format!("{} pgus/second", metrics.pgus_per_second.round()),
155+
value: format!("{} PGUs/second", metrics.pgus_per_second.round()),
156156
},
157157
CalibrationResultsTable {
158158
name: "Estimated Bid Price".to_string(),
@@ -185,7 +185,7 @@ async fn main() -> Result<()> {
185185
let ctx = SerialContext::new(network, signer);
186186

187187
// Setup the bidder.
188-
let bidder = SerialBidder::new(U256::from(args.bid_amount), args.throughput);
188+
let bidder = SerialBidder::new(U256::from(args.bid), args.throughput);
189189

190190
// Setup the prover
191191
let prover = SerialProver::new();
@@ -198,7 +198,7 @@ async fn main() -> Result<()> {
198198
wallet = %ctx.signer().address(),
199199
rpc = %args.rpc_url,
200200
throughput = %args.throughput,
201-
bid_amount = %args.bid_amount,
201+
bid = %args.bid,
202202
"Starting Node on Succinct Network..."
203203
);
204204
let node = Node::new(ctx, bidder, prover, monitor);

crates/node/src/serial.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ impl NodeContext for SerialContext {
7878
/// parameters to control how much it bids and how much throughput it can handle.
7979
#[derive(Debug, Clone)]
8080
pub struct SerialBidder {
81-
/// The bid amount for the bidder.
81+
/// The $PROVE price per billion proving gas units (PGUs) for the bidder.
8282
pub bid: U256,
83-
/// The throughput for the bidder.
83+
/// The throughput for the prover in proving gas units (PGUs) per second.
8484
pub throughput: f64,
8585
}
8686

@@ -224,7 +224,7 @@ impl<C: NodeContext> NodeBidder<C> for SerialBidder {
224224
}
225225

226226
// Bid on the request.
227-
info!(request_id = %request_id, bid_amount = %self.bid, "{SERIAL_BIDDER_TAG} Submitting a bid for request");
227+
info!(request_id = %request_id, bid = %self.bid, "{SERIAL_BIDDER_TAG} Submitting a bid for request");
228228
let body = BidRequestBody {
229229
nonce,
230230
request_id: hex::decode(request_id.clone())

0 commit comments

Comments
 (0)