From 8b2c553732607cba206255eb4e586d28b34f89cb Mon Sep 17 00:00:00 2001 From: Rucknium Date: Thu, 9 Mar 2023 15:09:20 +0000 Subject: [PATCH] Fix miscalc of p2pool revenue advantage Previously used unique block_reward instead of taking each block_height --- Monero-TX-Confirm-Delay/pool-comparison.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Monero-TX-Confirm-Delay/pool-comparison.R b/Monero-TX-Confirm-Delay/pool-comparison.R index d5eb657..c039c3e 100644 --- a/Monero-TX-Confirm-Delay/pool-comparison.R +++ b/Monero-TX-Confirm-Delay/pool-comparison.R @@ -53,7 +53,7 @@ xmr.blockchain <- merge(xmr.blockchain, p2pool.sim.confirm, by = "canon.receive_ xmr.blockchain[, mean(canon.block_receive_time - p2pool.sim.confirm.time, na.rm = TRUE)] -block.reward <- unique(xmr.blockchain[, .(block_reward, Pool, is_p2pool)]) +block.reward <- unique(xmr.blockchain[, .(block_height, block_reward, Pool, is_p2pool)]) block.reward[, mean(block_reward, na.rm = TRUE) / 1e12, by = "Pool"]