Comments (4)
Ah good call. And also, classic dogecoin. Wish there was an int128 type...I guess Big Int is the answer? https://golang.org/pkg/math/big/
from gobcy.
uint64 should be enough, faster and much easier to manipulate.
from gobcy.
👍 I'll probably keep a few things as ints (off the top of my head, unconfirmed_balance because negatives are possible and should never be very big)
from gobcy.
JIC anyone is following this, @matthieu and I talked in meatspace and agreed that this came down to a 32-bit vs 64-bit issue (since Go 1.1 the size of the int
type is based on the underlying architecture). For almost all cases, 64-bit ints should be fine (except in super weird/pathological cases and/or potentially dogecoin 🐶), and keeping the type as int
reduces a fair amount of cognitive overhead. We're going to add specific warnings/suggestions for those who are on 32-bit systems in the README and godoc.
from gobcy.
Related Issues (20)
- 1665857/97/44/5510
- blockchio.co
- TXSkel.Sign error: number of private keys != length of ToSign array HOT 2
- Broadcasting tx from API call always return error
- Error: Script was NOT verified successfully HOT 2
- SendTX(skel) fails HOT 7
- How to calculate the exact fee for a send transaction? HOT 1
- Add ETH to readme HOT 2
- Empty TXRefs on BTC with GetAddrFull HOT 3
- Error: Script was NOT verified successfully HOT 3
- how to send max amount with gobcy HOT 2
- how to gen new. and check a valid DASH address without call an api!
- the error: Script was NOT verified successfully HOT 3
- gobcy.TempMultiTX built a tx object as NewTX(tx) must be err HOT 1
- Can not transfer with from address is a BTC segwit address. HOT 2
- how to replace higher fee when the transaction is stuck (pending for a long time) HOT 1
- Hi, how to send BTC to 2 different addresses with different amounts? HOT 2
- go get github.com/blockcypher/gobcy/ ERROR HOT 2
- Wu
- invalid character '<' looking for beginning of value
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gobcy.