From d4a6094176326ed831f8c52b678123b358749085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caner=20=C3=87=C4=B1dam?= Date: Fri, 3 Nov 2023 12:56:37 +0300 Subject: [PATCH] rename to block score --- protocol/batch.pb.go | 15 +++++++-------- protocol/batch.proto | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/protocol/batch.pb.go b/protocol/batch.pb.go index 4faacca5..876ced3e 100644 --- a/protocol/batch.pb.go +++ b/protocol/batch.pb.go @@ -1090,7 +1090,7 @@ type Estimation struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - JsonRpcPerformance float64 `protobuf:"fixed64,1,opt,name=jsonRpcPerformance,proto3" json:"jsonRpcPerformance,omitempty"` + BlockScore float64 `protobuf:"fixed64,1,opt,name=blockScore,proto3" json:"blockScore,omitempty"` } func (x *Estimation) Reset() { @@ -1125,9 +1125,9 @@ func (*Estimation) Descriptor() ([]byte, []int) { return file_batch_proto_rawDescGZIP(), []int{13} } -func (x *Estimation) GetJsonRpcPerformance() float64 { +func (x *Estimation) GetBlockScore() float64 { if x != nil { - return x.JsonRpcPerformance + return x.BlockScore } return 0 } @@ -1348,11 +1348,10 @@ var file_batch_proto_rawDesc = []byte{ 0x73, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x74, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x26, 0x0a, 0x0e, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x63, 0x61, 0x6e, 0x6e, 0x65, - 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x3c, 0x0a, 0x0a, 0x45, 0x73, 0x74, 0x69, - 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x12, 0x6a, 0x73, 0x6f, 0x6e, 0x52, 0x70, - 0x63, 0x50, 0x65, 0x72, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x01, 0x52, 0x12, 0x6a, 0x73, 0x6f, 0x6e, 0x52, 0x70, 0x63, 0x50, 0x65, 0x72, 0x66, 0x6f, - 0x72, 0x6d, 0x61, 0x6e, 0x63, 0x65, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, + 0x72, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x22, 0x2c, 0x0a, 0x0a, 0x45, 0x73, 0x74, 0x69, + 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x53, + 0x63, 0x6f, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x62, 0x6c, 0x6f, 0x63, + 0x6b, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x50, 0x00, 0x50, 0x01, 0x50, 0x02, 0x50, 0x03, 0x50, 0x04, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/protocol/batch.proto b/protocol/batch.proto index 2f93f64a..db44b786 100644 --- a/protocol/batch.proto +++ b/protocol/batch.proto @@ -122,5 +122,5 @@ message InspectionInputs { } message Estimation { - double jsonRpcPerformance = 1; + double blockScore = 1; }