buxorg / bux Goto Github PK
View Code? Open in Web Editor NEWBitcoin UTXO & xPub Management Engine
Home Page: https://getbux.io
License: Apache License 2.0
Bitcoin UTXO & xPub Management Engine
Home Page: https://getbux.io
License: Apache License 2.0
Transactions are broadcast in order, if a transaction is successfully broadcast, the next one should also succeed.
It's sporadic
No response
Tracking issue for:
I'm not 100% on repro steps yet in terms of causing the xpub current_balance to get below 0, but if it does happen with sqlite then you can see error as shown in the attached logs when go-datastore
attempts to read the value.
Set xpub current_balance
below 0 and run a command with bux that would select the xpub and read its current_balance
field and watch it panic.
2022/09/19 23:02:26 type="error" file="[email protected]/models.go" method="go-datastore.(*Client).IncrementModel.func1" line="111" message="error executing query" file="/home/galt/go/pkg/mod/github.com/mrz1836/[email protected]/models.go:111" error="sql: Scan error on column index 5, name "current_balance": converting driver.Value type int64 ("-15") to a uint64: invalid syntax" duration="0.116ms" rows="1" sql="SELECT * FROM `xapi_xpubs` WHERE id = "7bd748da2721f4bcc7908a987c0c700c55b93deb55f02bae50777bc97882190b" ORDER BY `xapi_xpubs`.`id` LIMIT 1 "
2022/09/19 23:02:26 type="info" file="bux/models_internal.go" method="bux.(*Model).DebugLog" line="38" message="save tx error: sql: Scan error on column index 5, name "current_balance": converting driver.Value type int64 ("-15") to a uint64: invalid syntax"
First try to get the xPub from cache
If that fails, get from DB and then warm the cache for next time
xpub
, transaction
, destinations
, utxos
block height
and block hash
Ability to save the merkle proof and validate
user provided
fee/rate/token (or use a strategy: best quote, fastest)mCache
(not thread safe) (or fork and try to fix?)Currently in bux/chainstate/broadcast.go, line 67: broadcast( (...) )
the system tries to broadcast tx to several different providers:
What is the reason to call WhatsOnChain and NowNodes api without a set timeout for the connection, while timeout is set for requests to mAPI?
Call to WhatsOnChain broadcast:
No response
Example: f850a716343651a227fb755a2da903790c249cd2fe2e068cab6e25a6a3e3bffb
Another problem with this one is that the sync tries forever and fills the results
field in MySQL with JSON that at a certain moment is not readable anymore.
No response
Similar to other clients, we need the ability to do: monitor.Start()
or monitor.Stop()
mAPI
WhatsOnChain
MatterCloud
NowNodes
GetFeeUnit()
)SyncConfig
rulesbroadcast
sync
There is possibility to create many paymails with this same alias and domain, example: [email protected]
Solution proposal:
Use endpoint from bux-server:
/v1/paymail
With data:
{
"key": "...",
"address": "[email protected]",
"public_name": "test",
"avatar": "test"
}
Call it many times and many this same paymails will be created
No response
Missing inputs error when broadcasting
Hard to run into, it's related to parent tx not being broadcast and the child being broadcast before.
No response
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.