This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd.Flags().String(optionNamePaymentThreshold, "13500000", "threshold in BZZ where you expect to get paid from your peers")
cmd.Flags().Int64(optionNamePaymentTolerance, 25, "excess debt above payment threshold in percentages where you disconnect from your peer")
cmd.Flags().Int64(optionNamePaymentEarly, 50, "percentage below the peers payment threshold when we initiate settlement")
cmd.Flags().Int(optionNamePubsubCapacity, 32, "per-topic connection capacity this node offers as a pubsub broker")
cmd.Flags().StringSlice(optionNameResolverEndpoints, []string{}, "ENS compatible API endpoint for a TLD and with contract address, can be repeated, format [tld:][contract-addr@]url")
cmd.Flags().Bool(optionNameBootnodeMode, false, "cause the node to always accept incoming connections")
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description: Ethereum address of the cohort's admin.
- in: query
name: publisher-list
schema:
type: string
required: false
description: Comma-separated list of 20-byte hex Ethereum addresses allowed to publish, used with `publishers=list`.
- in: query
name: closed
schema:
type: boolean
required: false
description: Whether the cohort is closed to publishers not on the publisher list.
- in: query
name: history
schema:
type: boolean
required: false
description: "Whether the cohort should deliver history to new subscribers. Not supported by this node; a cohort spec naming `history: true` is refused."
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
description: The cohort specification of a pubsub topic, when known.
properties:
binding:
type: string
enum:
- anchor
- feed
description: How a publish frame's Single Owner Chunk id is derived. "anchor" uses the topic itself as the id; "feed" derives the id from the topic and the 8-byte big-endian index carried on every publish frame.
publishers:
type: string
enum:
- single
- list
description: Whether the cohort has one publisher (single) or an explicit publisher list (list).
admin:
type: string
description: Hex-encoded (no 0x prefix) 20-byte Ethereum address of the cohort's admin, or empty when unset.
publisherList:
type: array
items:
type: string
description: Hex-encoded (no 0x prefix) 20-byte Ethereum address.
closed:
type: boolean
description: Whether the cohort is closed to publishers not on the publisher list.
history:
type: boolean
description: Whether the cohort delivers history to new subscribers. Not supported by this node.
BpsTopicStatus:
type: object
description: The status of one pubsub topic this node participates in.
properties:
topic:
$ref: "#/components/schemas/SwarmAddress"
role:
type: string
enum:
- broker
- client
description: Whether this node brokers the topic or is a client of it.
peers:
type: integer
description: Number of peers currently attached to the topic on this node.
cohort:
$ref: "#/components/schemas/BpsCohortSpec"
headers:
SwarmTag:
description: "Tag UID"
Expand Down
Expand Up
@@ -1331,6 +1381,38 @@ components:
required: false
description: "ACT history Unix timestamp"
SwarmKeepAlive:
in: header
name: Swarm-Keep-Alive
schema:
type: integer
format: int64
default: 60
required: false
description: "Ping period, in seconds, of the pubsub websocket session. Must be a positive integer. Default: 60"
SwarmSocFields:
in: header
name: Swarm-Soc-Fields
schema:
type: string
required: false
description: >
Comma-separated list of Single Owner Chunk fields to include in outbound pubsub websocket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: bps protocol draft #5597
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
feat: bps protocol draft #5597
Filter by extension
Viewed files
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Uh oh!
There was an error while loading. Please reload this page.