This function maps the terminal log to a log file and assumes that the line containing BN_MA in the log file contains only the bootnode address.
So, If additional output is appended to the same line as the BN_MA address, the script's extraction method may fail, leading to incorrect parsing of the bootnode address. This can cause to boot failure and other issues in subsequent steps that rely on the correct bootnode address.
This PR addresses this issue. It prints the address on a new line and no further output is appended to it.
Issue
The following part of code from
cmd/bootnode/main.go
:prints the bootnode address in the format
BN_MA=<address>
. If any output is printed after this line, it will be appended to the same line.In the
deploy.sh
script, the bootnode address is extracted using thelaunch_bootnode
function:This function maps the terminal log to a log file and assumes that the line containing
BN_MA
in the log file contains only the bootnode address.So, If additional output is appended to the same line as the
BN_MA
address, the script's extraction method may fail, leading to incorrect parsing of the bootnode address. This can cause to boot failure and other issues in subsequent steps that rely on the correct bootnode address.This PR addresses this issue. It prints the address on a new line and no further output is appended to it.