Skip to content

Commit 5f39d97

Browse files
committed
don't use prefix 41 when add address to sensitiveCache map
1 parent 4a20239 commit 5f39d97

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

framework/src/main/java/org/tron/core/net/service/relay/RelayService.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121
import org.tron.common.log.layout.DesensitizedConverter;
2222
import org.tron.common.parameter.CommonParameter;
2323
import org.tron.common.utils.ByteArray;
24-
import org.tron.common.utils.ByteUtil;
25-
import org.tron.common.utils.DecodeUtil;
2624
import org.tron.common.utils.Sha256Hash;
2725
import org.tron.core.ChainBaseManager;
2826
import org.tron.core.capsule.TransactionCapsule;
@@ -169,10 +167,8 @@ public boolean checkHelloMessage(HelloMessage message, Channel channel) {
169167
}
170168
if (flag) {
171169
TronNetService.getP2pConfig().getTrustNodes().add(channel.getInetAddress());
172-
byte[] addressByte = ByteUtil.merge(new byte[] {DecodeUtil.addressPreFixByte},
173-
msg.getAddress().toByteArray());
174170
DesensitizedConverter.addSensitive(channel.getInetAddress().toString().substring(1),
175-
ByteArray.toHexString(addressByte));
171+
ByteArray.toHexString(msg.getAddress().toByteArray()));
176172
}
177173
return flag;
178174
} catch (Exception e) {

0 commit comments

Comments
 (0)