Challenges following the tutorial

未关闭
#143 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
文档
描述清晰度
需要澄清
活跃度
停滞
技术栈
shell, ubuntu
领域
cli, documentation

调研方向

从 Elements 代码教程的区块链页面和链接的基本操作教程开始,然后重现报告中显示的 wallet 和 initial-free-coins 命令。确定教程希望用户如何访问启动资金,并更新相关的教程说明,明确 wallet 创建和成功的余额检查。

由索引模型根据 Issue 内容生成。

描述

I'm attempting to set this up in a virtual machine following the tutorial. My VM is allocated ample storage and memory and running Ubuntu 20.04.2 LTS as the underlying operating system. The PPA repository for installing Bitcoin no longer seems to work, so I went ahead and installed Bitcoin from https://bitcoincore.org/bin/bitcoin-core-0.21.1/bitcoin-0.21.1-x86_64-linux-gnu.tar.gz, checking sha256 and signatures.

After installing Elements and setting up work environment, the following commands fail as there is no wallet, as one is not created by default.

Give them a few seconds to start up and then check they are running:

e1-cli getwalletinfo
e2-cli getwalletinfo

To get past this, I simply create wallets for both

e1-cli createwallet ""
e2-cli createwallet ""

And also for bitcoin

b-cli createwallet ""

Advancing forward in the tutorial to the next page, Using Elements to perform basic operations. From the tutorial the expectation is for the wallets to show 21 million bitcoin due to anyone can spend. But the balance is 0. With no balance on regtest, I can't proceed with sending to addresses generated by elements due to Insufficient funds.

So then since this is regtest, I do this to get 5000 coins available, and more in the immature balance

b-cli -generate 200

This doesn't help get access to initialfreecoins but may be viable to use for pegin

Simplify. Attempting just the standalone

The same is true if I take bitcoin out of the equation. Using just the standalone blockchain guidance found here: https://elementsproject.org/elements-code-tutorial/blockchain

# Args
STANDALONEARGS=("-validatepegin=0" "-defaultpeggedassetname=newasset" "-initialfreecoins=100000000000000" "-initialreissuancetokens=200000000")

# Startup 
e1-dae ${STANDALONEARGS[@]}

# Have to create wallet before viewing it
e1-cli createwallet ""

# Has zero balance, but shows asset name as `newasset` as anticipated
e1-cli getwalletinfo

# Look at transaction in first block from startup initialfreecoins
tx1=`e1-cli getblock $(e1-cli getblockhash 0) | jq -r .tx[1]`
e1-cli decoderawtransaction `e1-cli getrawtransaction $tx1`

I can see the 1,000,000 newasset created in vout, as well as the 2 for reissuance.

How can I claim the coins to the wallet to test with?

主要语言
HTML
星标
35
派生
24
平均合并
7 小时 45 分钟
30 天内合并 PR
1

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ElementsProject/elementsproject.github.io 的其他 Issue

查看 ElementsProject/elementsproject.github.io 的全部 Issue

相似的 Issue

更多 CLI Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。