摘要: 个人微博:https://weibo.com/u/2434823180 Blog: https://apenote.github.io 知乎:https://www.zhihu.com/people/3-33-52-32 vx: apedamoon 区块链通识 区块链技术基础 区块链原理 挖矿原理 阅读全文
posted @ 2022-12-08 13:18 apeNote 阅读(75) 评论(0) 推荐(0) 编辑
摘要: truffle migrate --network sepolia 报错 Error: There was a timeout while attempting to connect to the network at undefined. Check to see that your provid 阅读全文
posted @ 2024-10-08 20:37 apeNote 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 运行 truffle migrate 报错 *** Deployment Failed *** "TestT**" hit an invalid opcode while deploying. Try: * Verifying that your constructor params satisfy 阅读全文
posted @ 2024-10-04 16:36 apeNote 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 运行 truffle compile 报错 Error: Truffle is currently using solc 0.8.13, but one or more of your contracts specify "pragma solidity ^0.8.20". 修改 truffle-c 阅读全文
posted @ 2024-10-04 16:25 apeNote 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 运行以下 // SPDX-License-Identifier: MIT pragma solidity 0.7.5; import {Counters} from "@openzeppelin/contracts/utils/Counters.sol"; contract MyToken is E 阅读全文
posted @ 2024-10-04 08:55 apeNote 阅读(10) 评论(0) 推荐(0) 编辑
摘要: contract目录下 Storage.sol // SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.8.2 <0.9.0; /** * @title Storage * @dev Store & retrieve value in a va 阅读全文
posted @ 2024-10-02 15:22 apeNote 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 打印 ganache环境的账户列表 const localhost = "http://127.0.0.1:7545"; const {Web3} = require("web3"); const web3 = new Web3(new Web3.providers.HttpProvider(loc 阅读全文
posted @ 2024-10-02 10:42 apeNote 阅读(3) 评论(0) 推荐(0) 编辑
摘要: golang体系 协程 channle 锁 阅读全文
posted @ 2024-09-11 13:30 apeNote 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-08-31 15:07 apeNote 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1、隔离文件:chroot 2、隔离访问:名称空间 3、隔离资源:cgroups 4、封装系统:LXC 5、封装应用:Docker 6、封装集群:Kubernetes 阅读全文
posted @ 2024-08-30 13:30 apeNote 阅读(6) 评论(0) 推荐(0) 编辑
摘要: block/ block.go package blockchain import ( "bytes" "crypto/sha256" "encoding/gob" "log" ) type Block struct { Hash []byte Transactions []*Transaction 阅读全文
posted @ 2024-08-17 14:32 apeNote 阅读(23) 评论(0) 推荐(0) 编辑