In the blockchain world, proof-of-work is the dominant protocol mechanism that determines the consensus of the ledger. The hashrate, a measure of the computational power directed toward securing a blockchain through proof-of-work consensus, is a fundamental measure of preventing various attacks. This study tests the causal relationship between the hashrate and the security outcome of the Bitcoin blockchain. We use vector error correction modeling to analyze the endogenous relationships between the hashrate, Bitcoin price, and transaction fee, revealing the need for an additional variable to achieve our aim. Employing a measure summarizing the growth of demand factors in the Bitcoin ecosystem indicates that hashrate fluctuations significantly influence security level changes. This result underscores the importance of the hashrate in ensuring the security of the Bitcoin blockchain.