上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要: 拜占庭问题阐述 拜占庭帝国想要进攻一个强大的敌人,为此派出了10支军队去包围这个敌人。 这个敌人虽不比拜占庭帝国,但也足以抵御5支常规拜占庭军队的同时袭击。 这10支军队在分开的包围状态下同时攻击。他们任一支军队单独进攻都毫无胜算。 除非有至少6支军队(一半以上)同时袭击才能攻下敌国。 他们需要依靠 阅读全文
posted @ 2022-07-01 09:36 apeNote 阅读(251) 评论(0) 推荐(0)
摘要: 区块链技术基础 区块链原理 挖矿原理 软分叉和硬分叉 : https://www.cnblogs.com/apenote/p/16439883.html 侧链 : layer2: 跨链: 共识机制 拜占庭将军问题: https://www.cnblogs.com/apenote/p/16433442 阅读全文
posted @ 2022-07-01 09:14 apeNote 阅读(35) 评论(0) 推荐(0)
摘要: 报错 Deploying 'Migrations' *** Deployment Failed *** "Migrations" -- only replay-protected (EIP-155) transactions allowed over RPC. Exiting: Review suc 阅读全文
posted @ 2022-06-16 10:12 apeNote 阅读(461) 评论(0) 推荐(0)
摘要: 火币测试网参数 网络名称(可自定义,易于识别就好):HECO测试网 新增RPC URL: https://http-testnet.hecochain.com 链id (ChainID) 256 符号:HT 屏蔽管理器URL :https://scan-testnet.hecochain.com 货 阅读全文
posted @ 2022-06-15 09:13 apeNote 阅读(1) 评论(0) 推荐(0)
摘要: 1、安装这个 npm install @truffle/hdwallet-provider 然后发现报错的话试试下面这个 npm i @truffle/hdwallet-provider@next 2、在 truffle-config.js 文件添加火币测试网 hecotest:{ provider 阅读全文
posted @ 2022-06-14 19:46 apeNote 阅读(143) 评论(0) 推荐(0)
摘要: 1、安装truffle 安装 truffle 前,先安装 node npm install truffle --global 2、初始化 truffle init 初始化后的文件目录 3、实现demo pragma solidity ^0.8.4; contract Storage{ uint256 阅读全文
posted @ 2022-06-14 15:52 apeNote 阅读(342) 评论(0) 推荐(0)
摘要: 父合约 contract fruit{ string public name = 'eat'; } 继承 import "/4_.sol"; contract Apple is fruit { function getType() external view returns(string memor 阅读全文
posted @ 2022-06-09 23:43 apeNote 阅读(24) 评论(0) 推荐(0)
摘要: 合约创建合约 合约对 contract Pair { address public factory; string public token0; string public token1; constructor(string memory _token0, string memory _token 阅读全文
posted @ 2022-06-09 16:48 apeNote 阅读(259) 评论(0) 推荐(0)
摘要: A合约调用B合约 合约B contract B { uint public x; uint public value; function setX(uint _x) public returns (uint){ x = _x; return x; } function setXandSendEthe 阅读全文
posted @ 2022-06-08 23:29 apeNote 阅读(408) 评论(0) 推荐(0)
摘要: delegateCall 用于重定向父合约; A 合约越来调用B1, 将地址改为 B2 就可以调用 B2 合约B1 contract B { uint public num; uint public value; function setVars(uint _num) public payable{ 阅读全文
posted @ 2022-06-08 22:10 apeNote 阅读(143) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页