hack-ink / atomicalsir Goto Github PK
View Code? Open in Web Editor NEWAtomicals mining engine written in pure Rust.
License: GNU General Public License v3.0
Atomicals mining engine written in pure Rust.
License: GNU General Public License v3.0
Hi bro:
i was worked on Mac,after i run cargo build --release
success, i open new ternimal,and show
zsh: command not found: atomicalsir, so where is the atomicalsir
2024-01-17T17:33:06.202336Z INFO atomicalsir::wallet: loaded wallet: ../wallets/wallet.json
Error: missing field response
at line 1 column 65
Error: error decoding response body: missing field unconfirmed_n_tx
at line 1 column 28
Caused by:
missing field unconfirmed_n_tx
at line 1 column 28
error: external crate `async_trait` unused in `atomicalsir`: remove the dependency or add `use async_trait as _;`
|
note: the lint level is defined here
--> src/main.rs:1:23
|
1 | #![deny(missing_docs, unused_crate_dependencies)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:22:2
|
22 | async fn post<U, P, R>(&self, uri: U, params: P) -> Result<R>
| ^----
| |
| _____`async` because of this
| |
23 | | where
24 | | U: AsRef<str>,
25 | | P: Serialize,
26 | | R: DeserializeOwned;
| |____________________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:37:2
|
37 | async fn get_by_ticker<S>(&self, ticker: S) -> Result<Ticker>
| ^----
| |
| _____`async` because of this
| |
38 | | where
39 | | S: AsRef<str>,
| |______________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:51:2
|
51 | async fn get_ft_info<S>(&self, atomical_id: S) -> Result<ResponseResult<Ft>>
| ^----
| |
| _____`async` because of this
| |
52 | | where
53 | | S: AsRef<str>,
| |______________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:64:2
|
64 | async fn get_unspent_address<S>(&self, address: S) -> Result<Vec<Utxo>>
| ^----
| |
| _____`async` because of this
| |
65 | | where
66 | | S: AsRef<str>,
| |______________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:74:2
|
74 | async fn get_unspent_scripthash<S>(&self, scripthash: S) -> Result<Vec<Utxo>>
| ^----
| |
| _____`async` because of this
| |
75 | | where
76 | | S: AsRef<str>,
| |______________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:94:2
|
94 | async fn wait_until_utxo<S>(&self, address: S, satoshis: u64) -> Result<Utxo>
| ^----
| |
| _____`async` because of this
| |
95 | | where
96 | | S: AsRef<str>,
| |______________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:112:2
|
112 | async fn broadcast<S>(&self, tx: S) -> Result<serde_json::Value>
| ^----
| |
| _____`async` because of this
| |
113 | | where
114 | | S: AsRef<str>,
| |______________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
error[E0706]: functions in traits cannot be declared `async`
--> src/electrumx.rs:141:2
|
141 | async fn post<U, P, R>(&self, uri: U, params: P) -> Result<R>
| ^----
| |
| _____`async` because of this
| |
142 | | where
143 | | U: AsRef<str>,
144 | | P: Serialize,
145 | | R: DeserializeOwned,
| |____________________________^
|
= note: `async` trait functions are not currently supported
= note: consider using the `async-trait` crate: https://crates.io/crates/async-trait
= note: see issue #91611 <https://github.com/rust-lang/rust/issues/91611> for more information
= help: add `#![feature(async_fn_in_trait)]` to the crate attributes to enable
For more information about this error, try `rustc --explain E0706`.
error: could not compile `atomicalsir` (bin "atomicalsir") due to 9 previous errors
version: atomicalsir 0.2.0-3fd3e3b-x86_64-unknown-linux-gnu
./atomicalsir --rust-engine ./wallets --fee-bound 33,38 --ticker btcsoul
ERROR atomicals_electrumx: failed to parse response into JSON due to error decoding response body: missing field response at line 1 column 129
pls clone the new project and build test
atomicalsir.exe --max-fee 150 G:\BTC\atomicals
loaded wallet bc1ptna2ltu0tjk9ww9vxdm7xeyzta4vw8d5fxvev53puum34nrnydnsdval45 from G:\BTC\atomicals\wallets\wallet.json
可以正确识别到钱包,
但还是提示找不到程序
日志如下,打得太快了,reveal时,本地节点没连通,也没有重试,导致比特币被卡在了中间地址。有没有办法救回来?或者说这个有没有自动重试的机制?
TxOut {
value: Amount(0.00003431 BTC),
script_pubkey: Script(OP_PUSHNUM_1 OP_PUSHBYTES_32 de595f4b3a42e2d85887d758a32a226f02dc13dc06ec52ccb07d23409263b958),
},
],
}
2024-01-17T18:22:44.462608Z DEBUG atomicalsir::electrumx: {"success":true,"response":"000000c37d5abeb9e31c6862dc903522c40754b25fdb96369ba61bff6412c3d9"}
2024-01-17T18:22:44.512496Z DEBUG atomicalsir::electrumx: {"success":true,"response":[]}
2024-01-17T18:22:44.512515Z INFO atomicalsir::electrumx: waiting for UTXO...
Error: error sending request for url (http://172.22.223.180:8080/proxy/blockchain.scripthash.listunspent): connection closed before message completed
Caused by:
connection closed before message completed
I just did a test using latest code (0.1.9) . The mint is very fast, however, after confirmation on chain, it seems the atomicals index didn't recognize the successful mint received in primary wallet as atomicals. It considers it as normal UTXO. How can I fix this? Thanks
wallet.json 与 官方的定义不同?
更新了最新代码重新编译后,DEBUG模式后运行就出现Error: exceeded maximum retries,CPU没有波动。正常模式运行直接卡住不提示。 PR:上一个修复gas fee不平衡的版本运行正常,但打darkmatter这种难度的项目,一段时间后会崩溃,难度低耗时低的项目速度很快。
------------MACBOOK:M1 MACOS:14.2.1
Hi, pelase take a look at my following minting transactions.
https://mempool.space/address/bc1p9ujws0663hllhu9yr4j8ee3cj5p4f6k3sg4d8jh59mpz8y223t4qufzp3r
https://mempool.space/address/bc1pfejlwrm9rlldy237q2ff3jtwvp7llrlge9rxze4xekustnzenq8qnfrhv5
I believe there should be a second transaction with OP_RETURN
tags but it seems they never happened. Is there a way to recover the fund?
Originally posted by @shadowv0vshadow in #33 (comment)
没办法提交了吗?还是会自动改为200?
有时推荐的GAS很少,很可能不能及时确认,怎么设置最小GAS?
./atomicalsir --rust-engine ./wallets --ticker dragon
Can I mine dragon using the rust engine? I tried it and found a solution, but I couldn't commit
This is currently in the research phase.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.