I can activate the new network magic number based on the timestamp, but I need to restart the core wallet to take effect.
How can I achieve the goal without restarting? Please help! Thanks
For example:
if (time(NULL) >= 1725868500) { // GMT: GMT: Monday, September 9, 2024, 7:55 AM
// new message header (New consensus network magic number)
pchMessageStart[0] = 0xfa;
pchMessageStart[1] = 0xbe;
pchMessageStart[2] = 0xc0;
pchMessageStart[3] = 0xde;
} else {
// old message header (IFC and LTC network magic number are the same, resulting in mixed node connections)
pchMessageStart[0] = 0xfb;
pchMessageStart[1] = 0xc0;
pchMessageStart[2] = 0xb6;
pchMessageStart[3] = 0xdb;
}