Skip to content

Commit 613d082

Browse files
Fix new gRPC methods to use camel case (non-breaking change) (#560)
1 parent f8f9915 commit 613d082

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

rpc/grpc/core/proto/rpc.proto

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// Having received a RequestMessage, (wrapped in a KaspadMessage) the RPC server will respond with a
66
// ResponseMessage (likewise wrapped in a KaspadMessage) respective to the original RequestMessage.
77
//
8-
// **IMPORTANT:** This API is a work in progress and is subject to break between versions.
98
//
109
syntax = "proto3";
1110
package protowire;
@@ -897,7 +896,7 @@ message GetSyncStatusResponseMessage{
897896
}
898897

899898
message GetDaaScoreTimestampEstimateRequestMessage {
900-
repeated uint64 daa_scores = 1;
899+
repeated uint64 daaScores = 1;
901900
}
902901

903902
message GetDaaScoreTimestampEstimateResponseMessage{
@@ -908,7 +907,7 @@ message GetDaaScoreTimestampEstimateResponseMessage{
908907
message RpcFeerateBucket {
909908
// Fee/mass of a transaction in `sompi/gram` units
910909
double feerate = 1;
911-
double estimated_seconds = 2;
910+
double estimatedSeconds = 2;
912911
}
913912

914913
// Data required for making fee estimates.
@@ -918,28 +917,28 @@ message RpcFeerateBucket {
918917
// taking the transaction mass and multiplying it by feerate: `fee = feerate * mass(tx)`
919918
message RpcFeeEstimate {
920919
// Top-priority feerate bucket. Provides an estimation of the feerate required for sub-second DAG inclusion.
921-
RpcFeerateBucket priority_bucket = 1;
920+
RpcFeerateBucket priorityBucket = 1;
922921

923922
// A vector of *normal* priority feerate values. The first value of this vector is guaranteed to exist and
924923
// provide an estimation for sub-*minute* DAG inclusion. All other values will have shorter estimation
925-
// times than all `low_bucket` values. Therefor by chaining `[priority] | normal | low` and interpolating
924+
// times than all `lowBucket` values. Therefor by chaining `[priority] | normal | low` and interpolating
926925
// between them, one can compose a complete feerate function on the client side. The API makes an effort
927926
// to sample enough "interesting" points on the feerate-to-time curve, so that the interpolation is meaningful.
928-
repeated RpcFeerateBucket normal_buckets = 2;
927+
repeated RpcFeerateBucket normalBuckets = 2;
929928

930929
// A vector of *low* priority feerate values. The first value of this vector is guaranteed to
931930
// exist and provide an estimation for sub-*hour* DAG inclusion.
932-
repeated RpcFeerateBucket low_buckets = 3;
931+
repeated RpcFeerateBucket lowBuckets = 3;
933932
}
934933

935934
message RpcFeeEstimateVerboseExperimentalData {
936-
uint64 mempool_ready_transactions_count = 1;
937-
uint64 mempool_ready_transactions_total_mass = 2;
938-
uint64 network_mass_per_second = 3;
935+
uint64 mempoolReadyTransactionsCount = 1;
936+
uint64 mempoolReadyTransactionsTotalMass = 2;
937+
uint64 networkMassPerSecond = 3;
939938

940-
double next_block_template_feerate_min = 11;
941-
double next_block_template_feerate_median = 12;
942-
double next_block_template_feerate_max = 13;
939+
double nextBlockTemplateFeerateMin = 11;
940+
double nextBlockTemplateFeerateMedian = 12;
941+
double nextBlockTemplateFeerateMax = 13;
943942
}
944943

945944
message GetFeeEstimateRequestMessage {

0 commit comments

Comments
 (0)