cardano-foundation / cardano-foundation/cardano-rosetta-java
Enable dynamic peer discovery on mainnet by default
- Dominant language
- Java
- Stars
- 26
- Forks
- 15
- Avg merge
- 5d 3h
- Merged PRs (30d)
- 2
Description
Currently in the /network/status endpoint we provide static peers as an response from the node topology file. The Cardano node has P2P enabled which means once the node is bootstrapped, it will dynamically select peers and no be dependent on the static peers from the topology file.
The feature has been added in yaci to get dynamic peers. This is implemented in rosetta-java but not enabled as it would need through testing and keep the instance running for a long time to ensure the functionality does not impede with the yaci-indexer sync.
There is a flag DYNAMIC_PEERS added which when set to true will enable dynamic peers and get dynamic peers over the current static onces.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the /network/status endpoint and trace how static peers are currently returned from the node topology file. Read the existing DYNAMIC_PEERS flag implementation in rosetta-java and verify how enabling it affects Yaci peer selection and yaci-indexer synchronization. Done means dynamic peers are enabled by default without impeding a long-running indexer sync.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, blockchain
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100