摘要:Abstract : 概述 I try to Crack BTC POW funciton. 我尝试去破解BTC的POW函数 I think if a result has more zero it will more near target. 如果一个结果里面有更多的0,那么它应该更容易实现目标。
阅读全文
摘要:入口 if __name__ == "__main__": if len(sys.argv) < 3: print("Usage: {:s} <coinbase message> <block reward address>".format(sys.argv[0])) sys.exit(1) sta
阅读全文
摘要:配置文件路径: /home/helen/.bitcoin/bitcoin.conf 配置文件内容: # always run a server, even with bitcoin-qt server=1 # enable SSL for RPC server #rpcssl=1 rpcallowi
阅读全文
摘要:搭建测试环境 https://www.cnblogs.com/weikunpeng/p/14381522.html 修改home/tester/bitcoin-testnet-box/1/bitcoin.conf 去掉远程访问的限制 rpcallowip=0.0.0.0/0 rpcallowip=:
阅读全文
摘要:下载镜像 docker pull freewil/bitcoin-testnet-box 运行镜像 docker run -t -i -p 19001:19001 -p 19011:19011 freewil/bitcoin-testnet-box 修改make脚本 如果需要修改make相关的命令,
阅读全文
摘要:二进制字符串转换为int类型 int m=Integer.parseInt(a,2);//将字符串转化成十进制整形,2表示原串表示的数是二进制String n=Integer.toBinaryString(m);//将上面那个十进制数转化为二进制字符串形式 C++二进制字符串转十六进制字符串 十六进
阅读全文
摘要:Either set the environment variable BOOST_TEST_LOG_LEVEL to message when running your test binary: BOOST_TEST_LOG_LEVEL=message <your_test> 命令行添加如下参数:
阅读全文
摘要:GetHash声明 src\primitives\block.h uint256 GetHash() const; GetHash定义 调用SerializeHash函数 *this指向CBlock对象 src\primitives\block.cpp uint256 CBlockHeader::G
阅读全文
摘要:文件路径 src\test\validation_block_tests.cpp 包含的头文件 // Copyright (c) 2018-2020 The Bitcoin Core developers // Distributed under the MIT software license,
阅读全文
摘要:Test库提供了强有力的单元测试框架(UTF),它为软件开发的基本领域一单元测试提供了简单而富有弹性的解决方案,可以满足开发人员从高到低的各种需求,它的优点包括 易于理解,任何人都可以很容易地构建单元测试模块 提供测试用例、测试套件的概念,并能够以任意的复杂度组织它们 提供丰富的测试断言,能够处理各
阅读全文
摘要:原文 https://github.com/bitcoin/bitcoin/blob/master/src/test/README.md 基本情况 使用语言为Python,通过如下文件执行 test/functional/test_runner.py 单元测试源代码的目录为: /src/test/
阅读全文
摘要:官网 https://www.boost.org/ 简介 Boost是为C++语言标准库提供扩展的一些C++程序库的总称。Boost库是一个可移植、提供源代码的C++库,作为标准库的后备,是C++标准化进程的开发引擎之一,是为C++语言标准库提供扩展的一些C++程序库的总称。Boost库由C++标准
阅读全文
摘要:.vscode/launch.json设置 关键在于 "program": "${workspaceFolder}/src/qt/bitcoin-qt", 全部内容: { // Use IntelliSense to learn about possible attributes. // Hover
阅读全文
摘要:#include <iostream> #include <vector> #include <string> #include <cstring> #include <limits> #include <stdexcept> #include <stdint.h> #include <casser
阅读全文
摘要:基本信息 官网:https://github.com/bitcoin/bitcoin 比特币节点pow大致流程 生成coinbase交易,并与其他所有准备打包进区块的交易组成交易列表,通过Merkle树算法生成Merkle根哈希; 把Merkle根哈希及其他相关字段组装成区块头,将区块头的80字节数
阅读全文
摘要:http://mirrors.aliyun.com/docker-toolbox/windows/docker-toolbox/ https://www.runoob.com/docker/windows-docker-install.html https://developer.aliyun.co
阅读全文
摘要:https://www.jianshu.com/p/64281ff8de13 https://fabric-chs.readthedocs.io/zh_CN/chs/ https://github.com/fengzxu/fcc https://github.com/fftt2017/myfabri
阅读全文
摘要:简单 electron 效率+跨平台 QT C++
阅读全文
摘要:https://lwn.net/Articles/250967/ https://gitee.com/menluobi/menluokuanggong
阅读全文
摘要:FCC的代码在这里:https://gitee.com/xujf/fcc?_from=gitee_search 前期在windows平台下编译,因为docker-tools相关功能达不到要求而失败。(这里浪费了好多时间,引以为戒吧!) 官方教程也存在很多缩减的地方,后面看评论才找到详细的步骤,链接在
阅读全文