Skip to content

Commit

Permalink
Reply to red0ne's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Olshansk committed Jan 17, 2025
1 parent c91b3cf commit 54742fe
Show file tree
Hide file tree
Showing 13 changed files with 105 additions and 115 deletions.
57 changes: 26 additions & 31 deletions api/poktroll/shared/service.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/poktroll/supplier/query.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions localnet/poktrolld/config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ timeout_broadcast_tx_commit = "10s"
max_request_batch_size = 10

# Maximum size of request body, in bytes
max_body_bytes = 1000000
max_body_bytes = 100000000

# Maximum size of request header, in bytes
max_header_bytes = 1048576
Expand Down Expand Up @@ -330,7 +330,7 @@ keep-invalid-txs-in-cache = false

# Maximum size of a single transaction.
# NOTE: the max size of a tx transmitted over the network is {max_tx_bytes}.
max_tx_bytes = 1048576
max_tx_bytes = 100000000

# Maximum size of a batch of transactions to send to a peer
# Including space needed by encoding (one varint per transaction).
Expand Down
4 changes: 2 additions & 2 deletions localnet/poktrolld/config/supplier1_stake_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ owner_address: pokt1mrqt5f7qh8uxs27cjm9t7v9e74a9vvdnq5jva4
operator_address: pokt1mrqt5f7qh8uxs27cjm9t7v9e74a9vvdnq5jva4
stake_amount: 1000069upokt
default_rev_share_percent:
pokt1mrqt5f7qh8uxs27cjm9t7v9e74a9vvdnq5jva4: 80
pokt1eeeksh2tvkh7wzmfrljnhw4wrhs55lcuvmekkw: 20
pokt1mrqt5f7qh8uxs27cjm9t7v9e74a9vvdnq5jva4: 80.5
pokt1eeeksh2tvkh7wzmfrljnhw4wrhs55lcuvmekkw: 19.5
services:
- service_id: anvil
endpoints:
Expand Down
4 changes: 2 additions & 2 deletions localnet/poktrolld/config/supplier_stake_config_example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ stake_amount: 1000069upokt
# or include at least one item.
default_rev_share_percent:
# The sum of all shares MUST equal 100%. Staking will fail otherwise.
pokt1mrqt5f7qh8uxs27cjm9t7v9e74a9vvdnq5jva4: 80
pokt1eeeksh2tvkh7wzmfrljnhw4wrhs55lcuvmekkw: 20
pokt1mrqt5f7qh8uxs27cjm9t7v9e74a9vvdnq5jva4: 80.5
pokt1eeeksh2tvkh7wzmfrljnhw4wrhs55lcuvmekkw: 19.5
services:
# The endpoint URL for the Anvil service is provided via the RelayMiner.
# The RelayMiner acts as a proxy, forwarding requests to the actual Anvil data node behind it.
Expand Down
4 changes: 2 additions & 2 deletions proto/poktroll/shared/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ message SupplierEndpoint {

// ServiceRevenueShare message to hold revenue share configuration details
message ServiceRevenueShare {
// 2 was reserved in #1028 during the change of rev_share_percentage from float to uint32
// 2 was reserved in #1028 during the change of rev_share_percentage from float to double
reserved 2;

string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"]; // The Bech32 address of the revenue share recipient
uint32 rev_share_percentage = 3; // The percentage of revenue share the recipient will receive
double rev_share_percentage = 3; // The percentage of revenue share the recipient will receive
}

// Enum to define RPC types
Expand Down
1 change: 1 addition & 0 deletions proto/poktroll/supplier/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ message QueryParamsResponse {

message QueryGetSupplierRequest {
string operator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
// TODO_TECHDEBT: Add the ability to query for a supplier by owner_id
}

message QueryGetSupplierResponse {
Expand Down
Loading

0 comments on commit 54742fe

Please sign in to comment.