Add handshakeMsg log
Some checks failed
Build and Push to Registry / build-and-push (push) Has been cancelled

This commit is contained in:
omaroughriss 2025-09-10 16:24:06 +02:00
parent e4681f91e4
commit e729e32b35

View File

@ -1373,7 +1373,9 @@ export default class Services {
try {
const handshakeMsg: HandshakeMessage = JSON.parse(parsedMsg);
this.updateRelay(url, handshakeMsg.sp_address);
console.log('handshakeMsg:', handshakeMsg);
this.currentBlockHeight = handshakeMsg.chain_tip;
console.log('this.currentBlockHeight:', this.currentBlockHeight);
if (this.membersList && Object.keys(this.membersList).length === 0) {
// We start from an empty list, just copy it over
this.membersList = handshakeMsg.peers_list;