1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-03-13 05:41:11 +00:00

handle EdDSA addresses

This commit is contained in:
orignal 2017-03-27 10:45:26 -04:00
parent c0f3ac6b72
commit e8364fc666
2 changed files with 3 additions and 3 deletions

View File

@ -723,8 +723,8 @@ bool CNetAddr::IsTor() const
bool CNetAddr::IsNativeI2P() const
{
static const unsigned char pchAAAA[] = {'A','A','A','A'};
return (memcmp(i2pDest + NATIVE_I2P_DESTINATION_SIZE - sizeof(pchAAAA), pchAAAA, sizeof(pchAAAA)) == 0);
static const unsigned char pchAAA[] = {'A','A','A','='}; // EdDSA, TODO:
return (memcmp(i2pDest + NATIVE_I2P_DESTINATION_SIZE - sizeof(pchAAA), pchAAA, sizeof(pchAAA)) == 0);
}
std::string CNetAddr::GetI2PDestination() const

View File

@ -17,7 +17,7 @@ extern int nConnectTimeout;
#undef SetPort
#endif
#define NATIVE_I2P_DESTINATION_SIZE 516
#define NATIVE_I2P_DESTINATION_SIZE 522
#define NATIVE_I2P_B32ADDR_SIZE 60
#define NATIVE_I2P_NET_STRING "i2p"