@@ -81,6 +81,7 @@ func New(o ...Option) (*Blox, error) {
8181 blockchain .WithBlockchainEndPoint (p .blockchainEndpoint ),
8282 blockchain .WithSecretsPath (p .secretsPath ),
8383 blockchain .WithSelfPeerID (p .selfPeerID ),
84+ blockchain .WithClusterPeerID (p .clusterPeerID ),
8485 blockchain .WithTimeout (65 ),
8586 blockchain .WithWg (p .wg ),
8687 blockchain .WithFetchFrequency (1 * time .Minute ),
@@ -456,7 +457,7 @@ func (p *Blox) Start(ctx context.Context) error {
456457
457458 for {
458459 attempt ++
459- log .Infow ("Starting pool discovery" , "attempt" , attempt , "PeerID" , p .selfPeerID .String ())
460+ log .Infow ("Starting pool discovery" , "attempt" , attempt , "PeerID" , p .selfPeerID .String (), "clusterPeerID" , p . clusterPeerID . String () )
460461
461462 // Try each chain
462463 for _ , chainName := range chainList {
@@ -481,7 +482,7 @@ func (p *Blox) Start(ctx context.Context) error {
481482
482483 // peerID format for membership check
483484 membershipReq := blockchain.IsMemberOfPoolRequest {
484- PeerID : p .selfPeerID .String (),
485+ PeerID : p .clusterPeerID .String (),
485486 PoolID : pool .ID ,
486487 ChainName : chainName ,
487488 }
@@ -537,7 +538,7 @@ func (p *Blox) Start(ctx context.Context) error {
537538 }
538539
539540 if ! found {
540- log .Warnw ("Could not find pool membership on any chain" , "peerID " , p .selfPeerID .String (), "chains" , chainList )
541+ log .Warnw ("Could not find pool membership on any chain" , "clusterPeerID " , p .clusterPeerID .String (), "chains" , chainList )
541542 }
542543 }
543544
0 commit comments