To overcome the fast-changing block withholding attacks among multiple mining pools composed of miners in the blockchain system, this paper proposes a mining pool computing power allocation (MPPA) algorithm, which significantly improves the revenues of mining pools with block withholding attacks. MPPA first establishes the revenue optimization model of mining pools, which includes current adequate total computing power, the revenues of honest mining, and the revenues of block withholding attacks. Then MPPA calculates the revenue gain generated by block withholding attacks on other mining pools. To adjust the fixed computing power in each iteration, we have the mining pool computing power allocation algorithm with a fixed change of computing power (MPPA_F). To adjust the optimal recovery and attack computing power, we have the mining pool computing power allocation algorithm with an optimal change of computing power (MPPA_O). The simulation results demonstrate that MPPA_F and MPPA_O can find the optimized solutions of power computing allocation for each mining pool and outperform the state-of-arts such as WSFS, ALLC, and ALLD. INDEX TERMS Computing power allocation, block withholding attacks, multiple mining pools, revenue optimization model.