Lv.的博客

随笔分类 -  区块链

摘要:https://www.cnblogs.com/sumingk/articles/9097996.html 上一篇文章介绍了以太坊私有链 geth节点的搭建,本篇介绍下企业级应用 联盟链搭建,运用parity 钱包作为服务节点,实现多节点构建联盟链。 一.parity的实现共识POA 了解区块链的同 阅读全文
posted @ 2019-07-19 13:36 Avatarx 编辑
摘要:sudo wget https://raw.githubusercontent.com/paritytech/parity/master/scripts/parity.service -O /etc/systemd/system/parity.service sudo chmod +x /etc/s 阅读全文
posted @ 2019-07-19 13:13 Avatarx 编辑
摘要:接下来我们将在我们的私有网络连接两个节点。 先思考两个问题 决定存储区块链数据的目录 选择网络id,默认1为主网 为了在同一台机器能够运行两个节点,我们需要为不同的节点设置不同的port和rpcport。 开始编码 liyuechun:Desktop yuechunli$ cd 1015/ liyu 阅读全文
posted @ 2019-07-19 10:42 Avatarx 编辑
摘要:geth --networkid 1201 --rpc --rpcapi eth,net,web3,personal,admin,miner --rpccorsdomain "*" --datadir blockchainData --minerthreads 1 --maxpeers '100' 阅读全文
posted @ 2019-07-18 16:29 Avatarx 编辑
摘要:一、为什么用到私有链? 在以太坊的共有链上部署智能合约、发起交易需要花费以太币。而通过修改配置,可以在本机搭建一套以太坊私有链,因为与公有链没关系,既不用同步公有链庞大的数据,也不用花钱购买以太币,很好地满足了智能合约开发和测试的要求,开发好的智能合约也可以很容易地切换接口部署到以太坊公有链上。 二 阅读全文
posted @ 2019-07-18 15:02 Avatarx 编辑
摘要:版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011680118/article/details/82378509 一、简介 Geth是Go Ethereum开源项目的简称,它是使用Go语言编写且实现了Ethereum协议的客户端软件,也是目前用 阅读全文
posted @ 2019-07-18 14:16 Avatarx 编辑
摘要:genesis block file example { "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 }, "difficulty": "4", "gasLimit": "210 阅读全文
posted @ 2019-07-18 13:31 Avatarx 编辑
摘要:使用geth的account命令管理账户,例如创建新账户、更新账户密码、查询账户等: geth account <command> [options...] [arguments...] 命令 - command list 列表显示现有账户 new 创建一个新的账户 update 修改账户 impo 阅读全文
posted @ 2019-07-18 11:28 Avatarx 编辑
摘要:如果要初始化区块链的话就用创始区块 如果通过创世区块来初始化区块链的话,首先需要一个初始化区块链的json文件,如下。 { "config": { "chainId": 15, "homesteadBlock": 0, "eip155Block": 0, "eip158Block": 0 }, "d 阅读全文
posted @ 2019-07-18 11:27 Avatarx 编辑
摘要:geth –datadir “./ethdev” –nodiscover console 2>>geth.log //geth 进入控制台 –datadir 指定链的目录 与公有链区分开 进入命令行模式,其中参数 –datadir 代表文件夹地址, –nodiscover 代表该链条不希望被其他节点 阅读全文
posted @ 2019-07-18 11:01 Avatarx 编辑
摘要:以太坊geth区块链私链建立 geth的github https://github.com/ethereum/go-ethereum 下载最新(1.8)的geth,windows下安装很简单 关于私链在geth的github wiki上private network一章有指南,下面进行部分翻译和整合 阅读全文
posted @ 2019-07-18 10:31 Avatarx 编辑
摘要:网上查了一下资料,原来是需要 python-software-properties 于是 apt-get install python-software-properties 除此之外还要安装 software-properties-common 于是 apt-get install softwar 阅读全文
posted @ 2019-07-17 16:01 Avatarx 编辑
摘要:Truffle测试框架 2018年06月08日 19:01:19 tianlongtc 阅读数 1000 Truffle测试框架 Truffle测试框架 2018年06月08日 19:01:19 tianlongtc 阅读数 1000 2018年06月08日 19:01:19 tianlongtc 阅读全文
posted @ 2019-07-17 16:00 Avatarx 编辑
摘要:在用truffle编译智能合约时,报错 TypeError: Data location must be "memory" for return parameter in function, but none was given.这是由于solidity 0.5.0版本的更新导致的,只需要在addr 阅读全文
posted @ 2019-07-17 15:59 Avatarx 编辑
摘要:最新内容会更新在主站深入浅出区块链社区 原文链接:搞懂 Solidity 事件 Event - 如何在 DApp 中使用 很多同学对Solidity 中的Event有疑问,这篇文章就来详细的看看Solidity 中Event到底有什么用? 写在前面 Solidity 是以太坊智能合约编程语言,阅读本 阅读全文
posted @ 2019-07-17 15:49 Avatarx 编辑
摘要:版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014409380/article/details/79897335 版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014409380/artic 阅读全文
posted @ 2019-07-17 15:06 Avatarx 编辑
摘要:不像你在其他地方看到的纸质合约,以太坊的智能合约是代码组成的,需要你以非常谨慎的态度去对待它。 (这是一件好事,想象下如果现实世界的合同需要编译的话会更清晰么?) 如果我们的合同没有被正确的编码出来, 我们的交易可能会失败,导致以太币的损失(以 gas 的形式),更不用说浪费时间和精力。 幸运的是, 阅读全文
posted @ 2019-07-17 14:20 Avatarx 编辑
摘要:I followed the tutorial of quorum with truffle: https://truffleframework.com/tutorials/building-dapps-for-quorum-private-enterprise-blockchains Now I 阅读全文
posted @ 2019-07-17 14:18 Avatarx 编辑
摘要:2018年03月13日 09:20:54 思无邪-machengyu 阅读数 2683 2018年03月13日 09:20:54 思无邪-machengyu 阅读数 2683 版权声明:本文为博主原创文章,转载请务必注明出处,否则追究法律责任 https://blog.csdn.net/pony_m 阅读全文
posted @ 2019-07-17 13:59 Avatarx 编辑
摘要:Versioning¶ Solidity versions follow semantic versioning and in addition to releases, nightly development builds are also made available. The nightly 阅读全文
posted @ 2019-07-16 16:49 Avatarx 编辑

点击右上角即可分享
微信分享提示