hectorchu / gonano Goto Github PK
View Code? Open in Web Editor NEWGo language support for Nano, a digital currency
License: MIT License
Go language support for Nano, a digital currency
License: MIT License
Windows 10 and Linux.
I used the program to successfully create an account in Windows 10 and then I sent it a small amount via https://nano-faucet.org/
I could not get transaction to be received using the wallet. I assumed it might be another Windows 10 issue so I built the program in ubuntu, created another wallet and tried again.
./main add -w0 Enter password: Added account nano_1tjj6r5f5azmjjduwh7hrxsqcq19moox1939dhczbh58h4fejpasat8qx6ab
the command
./main receive -w0
did not work (still shows as pending in https://nanocrawler.cc/explorer/ )
the command
./main receive -a nano_1tjj6r5f5azmjjduwh7hrxsqcq19moox1939dhczbh58h4fejpasat8qx6ab
also did not work.
it takes like 10 seconds using gonano send <account1> <account2> <amount>
Used your Gonano plugin for WooCommerce, having big issues. One client send a transaction to the intermediate wallet address which didn't send it to the recepient wallet address (nano_3ajaewy49s1wz8jjbygbzf9wcoa8bskcc3b7b6xz68odt3qia6mu7cytfbkp):
What are we doing now?
It could prove useful for the casual user as well as for the bug reporter to be able to see which version of gonano is actually installed, e.g.:
$ gonano --version
gonano/0.1.16 (2021-06-04)
The casual user will be able to asses if a newer version is available, and the bug reporter can include the version string in their issue.
If you choose to implement this, please allow both a long (--version
) and a short (-v
) option.
Should you choose to include the release date, please use the ISO-8601 format.
Cheers.
The default RPC endpoint, https://mynano.ninja/api/node
has been offline for quite a while, and the hostname doesn't even have an associated IPv4 or IPv6 address anymore.
While this can, of course, be overcome by using the -r
/--rpc
flag, it may be a hurdle for newcomers and it would be prudent to change the default node to something that works, e.g.:
https://rainstorm.city/api
See also #15.
🙏
Windows 10
I get the same error if I go build ./main.go
(which then creates, main.exe)
PS C:\Users\circusdad\go-code\src\gonano> go install
# github.com/karalabe/hid
In file included from ..\..\..\go\pkg\mod\github.com\karalabe\[email protected]\hid_enabled.go:40:
..\..\..\go\pkg\mod\github.com\karalabe\[email protected]/hidapi/windows/hid.c: In function 'hid_enumerate':
..\..\..\go\pkg\mod\github.com\karalabe\[email protected]/hidapi/windows/hid.c:431:5: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=]
431 | strncpy(cur_dev->path, str, len+1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
..\..\..\go\pkg\mod\github.com\karalabe\[email protected]/hidapi/windows/hid.c:429:11: note: length computed here
429 | len = strlen(str);
| ^~~~~~~~~~~
It does build an executable but then does not seem to work. For instance,
PS C:\Users\circusdad\go-code\src\gonano> gonano add
Enter seed or bip39 mnemonic (leave blank for random):
The handle is invalid.
PS C:\Users\circusdad\go-code\src\gonano> .\main.exe add
Enter seed or bip39 mnemonic (leave blank for random):
The handle is invalid.
Hi.
does this support serializing or persisting the wallets in a db ?
I could not figure that out by checking the code but maybe I overlooked it.
thanks.
this is my output:
arthopacini@arthopacini:~$ go get github.com/hectorchu/gonano
# github.com/hectorchu/gonano/ledger
go/src/github.com/hectorchu/gonano/ledger/message.go:56:41: block.Balance.FillBytes undefined (type *rpc.RawAmount has no field or method FillBytes)
# github.com/robvanmieghem/go-opencl/cl
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
arthopacini@arthopacini:~$
I have packaged “gonano” for ArchLinux AUR:
⌘ https://aur.archlinux.org/packages/gonano/
It can be compiled and installed with e.g.:
yay -S gonano
gonano
has stopped being able to “receive”:
$ gonano list
0: 1 account
1: 1 account
2: 1 account
3: 1 account
4: 1 account
$ gonano receive -w0
json: cannot unmarshal string into Go struct field .Blocks of type map[string]rpc.HashToPendingMap
[1] $
I have a daily cronjob running to “receive” any payments to all of the accounts above. On 2022-01-25 gonano
started failing with the error seen above.
gonano
v0.1.16 (+ latest commit ef81ace)go
version go1.17.6 linux/amd64 (and an earlier version for gonano
v0.1.16)The accounts have the “Finland Green 💚” representative. The GUI wallet Nault
says the representative is ok.
Any suggestions?
Ninja is not always available for testing. What's the solution?
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.