From 05e5449ba50729ce828125a5d868211118844e4e Mon Sep 17 00:00:00 2001 From: Mark Tyneway Date: Fri, 23 Oct 2020 11:50:51 -0700 Subject: [PATCH] logs: compress pubkey in logs (#54) --- rollup/transaction_ingestion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup/transaction_ingestion.go b/rollup/transaction_ingestion.go index 0d0585ab3975..9607183bb2a2 100644 --- a/rollup/transaction_ingestion.go +++ b/rollup/transaction_ingestion.go @@ -115,7 +115,7 @@ func (t *TxIngestion) loop() { panic("Transaction ingestion requires a private key") } - hex := hexutil.Encode(crypto.FromECDSAPub(&t.key.PublicKey)) + hex := hexutil.Encode(crypto.CompressPubkey(&t.key.PublicKey)) address := crypto.PubkeyToAddress(t.key.PublicKey) log.Info("Starting transaction ingestion", "key", hex, "address", address.Hex())