string sPrevHash;//前一個區(qū)塊的哈希值 Block(uint32_t nIndexIn, const string& sDataIn);//構(gòu)造函數(shù) string GetHash();//返回哈希值 void MineBlock(uint32_t nDifficulty);//挖礦,其參數(shù)nDifficulty表示指定的難度值 void NoMineBlock();//不挖礦直接添加區(qū)塊 uint32_t _nIndex;//區(qū)塊索引值,第幾...
www.dbjr.com.cn/blockchain/7705...html 2025-6-9