您正在查看: Ethereum 分类下的文章

从哪里获得xDai代币

由于Swarn正式线基于xDai以太坊侧链运行,因为启动需要部署支票合约,所以需要拥有一定量的xDai

此片文章只讨论Swarm技术问题,社区不推荐任何虚拟币购买和交易

直接兑换

https://bitmax.io/en/basic/cashtrade-spottrading/usdt/xdai

跨链过去DAI->XDAI

可以直接GM DAI https://www.huobi.com/en-us/exchange/dai_usdt/ 然后 直接跨链过去 https://bridge.xdaichain.com/

添加到MetaMask

网络名称:xDai
新的RPC网址:https://rpc.xdaichain.com/
链 ID:0x64
符号:xDai
区块浏览器网址:https://blockscout.com/xdai/mainnet
https://www.xdaichain.com/for-users/wallets/metamask/metamask-setup#setting-up-metamask-for-xdai

参考文档

https://www.xdaichain.com/for-users/get-xdai-tokens#how-to-get-xdai-stable-tokens

xdai RPC搭建

下载openethereum

此时最新release版本v3.2.6
https://github.com/openethereum/openethereum/releases/tag/v3.2.6

根据对应系统下载对应版本程序
社区使用的是linux,对应的地址是

wget https://github.com/openethereum/openethereum/releases/download/v3.2.6/openethereum-linux-v3.2.6.zip
unzip -x openethereum-linux-v3.2.6.zip
chmod +x openethereum

运行openethereum

nohup ./openethereum --chain xdai --db-path ./data --base-path ./base_data --interface all --port 19000 --jsonrpc-interface all --jsonrpc-port 19001 --ws-port 19002 --ws-interface all>./node.log 2>&1 &

查看日志

tail -f node.log

xdai区块浏览器

https://blockscout.com/xdai/mainnet/

参考

https://openethereum.github.io/Configuring-OpenEthereum
https://www.xdaichain.com/for-developers/install-xdai-client/parity

Swarm节点出票版本选择

目前0.5.3的节点还能接收到一些测试的支票,得到的支票还能参与空投么?

您可能会在 0.5.3 中获得支票,但自 6 月 1 日官方 0.6.2 更新公告以来,它们将不符合空投资格。
https://discord.com/channels/799027393297514537/810905662375854123/851855211835424768

为什么我看到很多特别组织的都声称已经接收了大量0.6.2版本的支票了

Actually, yes, someone or someones are attempting to cheat by cascading ever-increasing check values across checkbooks that they control. What they don't realize is that this is futile as NONE of the checks issued by non-trusted (read: our) nodes will ever convert to qBZZ because the queen bee nodes will be selected from "trusted" nodes, which to me means nodes that are run by the core swarm team.

实际上,是的,某人或某人正试图通过在他们控制的支票簿中级联不断增加的支票值来作弊。 他们没有意识到这是徒劳的,因为不受信任(阅读:我们的)节点发出的检查都不会转换为 qBZZ,因为蜂王节点将从“受信任”节点中选择,这对我来说意味着 由核心swarm 团队运行的节点

https://discord.com/channels/799027393297514537/810905662375854123/851842182747127818
https://discord.com/channels/799027393297514537/810905662375854123/851843762082283541

Swarm 分布式节点管理系统

为了方便管理Swarm bee大量节点以及减少用户的对节点的学习成本,计划提供一款BS架构的《Swarm分布式节点管理系统》,Agent部分负责与bee节点交互,代码开源,防止用户担心自己服务器私钥安全问题。Client客户端部分通过https和RSA+混淆与Agent进行加密通信,用户无需了解Swarm技术细节,通过界面操作即可完成bee节点管理以及相关的数据操作与聚合分析展示

Swarm-Agent

开源地址:稍后补充

代码依赖库

  1. [cpp-httplib] https://github.com/yhirose/cpp-httplib
  2. [spdlog] https://github.com/gabime/spdlog
  3. [nlohmann-json] https://github.com/nlohmann/json
  4. [args]https://github.com/Taywee/args
  5. [libuv]https://github.com/libuv/libuv
  6. [BigInt]https://github.com/faheel/BigInt

编译依赖库

分别clone完代码后执行

mkdir -p build
cd build/
cmake .. -DBUILD_TESTING=ON
sudo make install

运行依赖

sudo apt-get update
sudo apt-get install libuv1.dev

运行Agent

#!/usr/bin/env bash
echo "Start Agent"
ipaddr=$(ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:")

nohup ./bin/bee_agent -u 2 -k 4bdf4bf5513a833b9db7e110ddfd53c2a1bd86fe --nHost 127.0.0.1 --nPort 1635 --dHost ${ipaddr} --dPort 8888 --uis 60 --aHost 172.18.0.190 --aPort 8086 >./bee_agent.log 2>&1 &

Swarm-Server

Download file prompt "Permanent Redirect"

https://github.com/ethersphere/bee/issues/1985

I'm guessing following redirections (with -L) should fix this? Or adding a slash after your url:

curl -OJ http://localhost:6333/bzz/44002171b486e68853c48bb242dc8a61530b11cc7da802fbca308400e894a2c6/