fix: remove logs of HF 19.0 and 19.1 values

pull/2425/head
Audric Ackermann 3 years ago
parent 75ce27e602
commit cfbb58aa7f

@ -78,12 +78,12 @@ export async function handleHardforkResult(json: Record<string, any>) {
isNumber(json.hf[1]) isNumber(json.hf[1])
) { ) {
if (!hasSeenHardfork190 && json.hf[0] >= 19 && json.hf[1] >= 0) { if (!hasSeenHardfork190 && json.hf[0] >= 19 && json.hf[1] >= 0) {
window.log.info('[HF]: We just detected HF 19.0 on "retrieve"'); // window.log.info('[HF]: We just detected HF 19.0 on "retrieve"');
await Data.createOrUpdateItem({ id: 'hasSeenHardfork190', value: true }); await Data.createOrUpdateItem({ id: 'hasSeenHardfork190', value: true });
hasSeenHardfork190 = true; hasSeenHardfork190 = true;
} }
if (!hasSeenHardfork191 && json.hf[0] >= 19 && json.hf[1] >= 1) { if (!hasSeenHardfork191 && json.hf[0] >= 19 && json.hf[1] >= 1) {
window.log.info('[HF]: We just detected HF 19.1 on "retrieve"'); // window.log.info('[HF]: We just detected HF 19.1 on "retrieve"');
await Data.createOrUpdateItem({ id: 'hasSeenHardfork191', value: true }); await Data.createOrUpdateItem({ id: 'hasSeenHardfork191', value: true });
hasSeenHardfork191 = true; hasSeenHardfork191 = true;
} }

@ -20,7 +20,6 @@ import { getConversationController } from '../conversations';
import { ed25519Str } from '../onions/onionPath'; import { ed25519Str } from '../onions/onionPath';
import { EmptySwarmError } from '../utils/errors'; import { EmptySwarmError } from '../utils/errors';
import ByteBuffer from 'bytebuffer'; import ByteBuffer from 'bytebuffer';
import { getHasSeenHF190, getHasSeenHF191 } from '../apis/snode_api/hfHandling';
import { import {
sendMessageOnionV4BlindedRequest, sendMessageOnionV4BlindedRequest,
sendSogsMessageOnionV4, sendSogsMessageOnionV4,
@ -144,17 +143,18 @@ export async function sendMessageToSnode(
const conversation = getConversationController().get(pubKey); const conversation = getConversationController().get(pubKey);
const isClosedGroup = conversation?.isClosedGroup(); const isClosedGroup = conversation?.isClosedGroup();
const hardfork190Happened = await getHasSeenHF190(); // const hardfork190Happened = await getHasSeenHF190();
const hardfork191Happened = await getHasSeenHF191(); // const hardfork191Happened = await getHasSeenHF191();
const namespace = isClosedGroup ? -10 : 0; const namespace = isClosedGroup ? -10 : 0;
window?.log?.debug( // we could get rid of those now, but lets keep it in case we ever need to use the HF value again
`Sending envelope with timestamp: ${timestamp} to ${ed25519Str(pubKey)} size base64: ${ // window?.log?.debug(
data64.length // `Sending envelope with timestamp: ${timestamp} to ${ed25519Str(pubKey)} size base64: ${
}; hardfork190Happened:${hardfork190Happened}; hardfork191Happened:${hardfork191Happened} to namespace:${namespace}` // data64.length
); // }; hardfork190Happened:${hardfork190Happened}; hardfork191Happened:${hardfork191Happened} to namespace:${namespace}`
// );
const isBetweenBothHF = hardfork190Happened && !hardfork191Happened; const isBetweenBothHF = false; //hardfork190Happened && !hardfork191Happened;
// send parameters // send parameters
const params = { const params = {

Loading…
Cancel
Save