Repository navigation
|
Hi everyone, I've been looking into the ConsensusObserver implementation in the Sui source code, especially observer_subscriber.rs and observer_service.rs. I'm trying to understand if it's possible to receive consensus blocks directly from validators or other observers instead of waiting for checkpoint data. I have a few questions: Is ConsensusObserver currently supported on Sui mainnet for non-validator full nodes? How can I discover validators or observer peers that provide block streaming? Is there a public peer list or discovery mechanism? Do validators need to allowlist observer connections, or can I connect using their public network information? Is there any working mainnet configuration example, especially for observer.peers? Does the stream deliver blocks before they are committed, or only after consensus finality? I couldn't find clear documentation on how to actually set this up on mainnet. Has anyone tried this or managed to get it working? Thanks! |
Replies: 2 comments 1 reply
|
The current code supports The role is opt-in. A full node needs fullnode-sync-mode: consensus-observer
consensus-config:
db-path: /opt/sui/db/consensus
parameters:
observer:
peers:
- public_key: "<peer network public key in hex>"
address: "<peer observer service multiaddr>"Note the key style: the node config keys are kebab-case, but everything under The There is also an important current limitation: the startup code only subscribes to the first configured peer: for peer_record in context.parameters.observer.peers.iter().take(1) {
// ...
}So configure one known, reachable peer for now. I could not find a published mainnet peer list or a documented automatic discovery path for observer service endpoints. A validator must explicitly enable its observer server with The stream is not the same thing as checkpoint data. The server first sends cached blocks and then live blocks from the accepted-block broadcast. With the default Relevant source: |
|
Thanks for the detailed explanation, this clears up a lot! One thing I'm still trying to figure out: Are there any known mainnet validators or observer operators currently running the ObserverService and accepting external connections? Does Mysten Labs operate an observer server on mainnet that third parties can request access to, or is it strictly arranged per validator operator? Also, is consensus block streaming considered production-ready for external observers, or is it still experimental? |
The current code supports
ConsensusObserverfor a non-validator full node, but that does not mean there is a public mainnet observer feed that any full node can discover automatically.The role is opt-in. A full node needs
fullnode-sync-mode: consensus-observer, a consensus config, and at least one configured observer peer:Note the key style: the node config keys are kebab-case, but everything under
parameterscomes from the consensus crate'sParam…