"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EthP2pWorker = void 0;
const p2p_1 = require("../../../providers/chain-state/evm/p2p/p2p");
class EthP2pWorker extends p2p_1.EVMP2pWorker {
    getBlockReward(block) {
        let reward = 5;
        const height = BigInt(block.number);
        const ForkHeights = {
            Byzantium: 4370000n,
            Constantinople: 7280000n
        };
        if (height > ForkHeights.Constantinople) {
            reward = 2;
        }
        else if (height > ForkHeights.Byzantium) {
            reward = 3;
        }
        return reward;
    }
}
exports.EthP2pWorker = EthP2pWorker;
;
//# sourceMappingURL=p2p.js.map