neo-project / neo-node Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
After sending neo to my own wallet I get the following exception when I open my wallet:
Unhandled Exception: System.InvalidOperationException: Failed to compare two elements in the array. ---> System.ArgumentException: At least one object must implement IComparable.
at System.Collections.Comparer.Compare(Object a, Object b)
at Microsoft.EntityFrameworkCore.Update.Internal.ModificationCommandComparer.Compare(ModificationCommand x, ModificationCommand y)
at System.Collections.Generic.ArraySortHelper`1.InsertionSort(T[] keys, Int32 lo, Int32 hi, Comparison`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
--- End of inner exception stack trace ---
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
at System.Collections.Generic.List`1.Sort(Int32 index, Int32 count, IComparer`1 comparer)
at Microsoft.EntityFrameworkCore.Update.Internal.CommandBatchPreparer.<BatchCommands>d__8.MoveNext()
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(Tuple`2 parameters)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection)
at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IReadOnlyList`1 entries)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IReadOnlyList`1 entriesToSave)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
at Neo.Implementations.Wallets.EntityFramework.UserWallet.OnProcessNewBlock(Block block, IEnumerable`1 added, IEnumerable`1 changed, IEnumerable`1 deleted)
at Neo.Wallets.Wallet.ProcessNewBlock(Block block)
at Neo.Wallets.Wallet.ProcessBlocks()
at System.Threading.Thread.ThreadMain_ThreadStart()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
Aborted
And after this I'm back in the bash and no typing will shown in the bash.
Possibly i'm not understanding correctly, but I'm not seeing my NEO appear when using list asset
I setup my wallet before all blocks had synced, and sent some NEOs to my address. After the wallet appears to have been synced:
neo> show state
Height: 1526873/1526873, Nodes: 5
running list asset
doesn't provide any feed back, unlike show gas
neo> list asset
neo> show gas
unavailable: 0
available: 0
I would at least expect list asset
to provide some feedback, even if it was a 0 value. I've checked neotracker.io and can see details of my transaction, have sent to the correct address but it's just not reflecting in my wallet.
I've yet to try previous versions of the cli. I can't see what I am missing from the documentation.
Running neo-cli: v2.3.5, (neo-cli-ubuntu.16.04-x64.zip) on 16.04
Thanks
I'm using neo gui- gas unavailable:
Amount 0, Unavailable 13
What am I missing?
Hello,
I would like to compile the source code in Linux in order to port it to a Raspberry pi.
I see a partial compilation guide at https://github.com/neo-project/neo-cli/blob/master/README.md, but it looks it is for Windows. Is there any other documentation?
Thanks,
Ken
how to get utxo by rpc?
Whats the actual relation between consensus and wallet asset? Why consensus requires wallet to be opened to run then how do you protect it over rpc ?
Where's can I watch changelog for releases? I can't find it.
root@server:~/neo# dotnet neo-cli.dll A fatal error was encountered. The library 'libhostpolicy.so' required to execute the application was not found in '/somepath/neo'.
How do I fix this?
Also to be honest. Writing everything in DotNet wasn't very smart IMHO.
I've done a fresh install of Windows 10 and have tried to install the windows 10 NEO client but I'm getting the following error on install:
Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'libleveldb': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Neo.Implementations.Blockchains.LevelDB.Native.leveldb_options_create()
at Neo.Implementations.Blockchains.LevelDB.LevelDBBlockchain..ctor(String path)
at Neo.Shell.MainService.OnStart(String[] args)
at Neo.Services.ConsoleServiceBase.Run(String[] args)
at Neo.Program.Main(String[] args)
Is anyone able to help please?
当 json-rpc 请求的数组中有回车或换行时,服务器会返回错误(-32700 Parse error)。
{
"jsonrpc": "2.0",
"method": "sendmany",
"params": [[
{"asset": "025d82f7b00a9ff1cfe709abe3c4741a105d067178e645bc3ebad9bc79af47d4","value": 1,"address": "AbRTHXb9zqdqn5sVh4EYpQHGZ536FgwCx2"},{"asset": "025d82f7b00a9ff1cfe709abe3c4741a105d067178e645bc3ebad9bc79af47d4","value": 1,"address": "AbRTHXb9zqdqn5sVh4EYpQHGZ536FgwCx2"}]],
"id": 1
}
将数组中的回车删掉,服务器会返回正确结果
{
"jsonrpc": "2.0",
"method": "sendmany",
"params": [[{"asset": "025d82f7b00a9ff1cfe709abe3c4741a105d067178e645bc3ebad9bc79af47d4","value": 1,"address": "AbRTHXb9zqdqn5sVh4EYpQHGZ536FgwCx2"},{"asset": "025d82f7b00a9ff1cfe709abe3c4741a105d067178e645bc3ebad9bc79af47d4","value": 1,"address": "AbRTHXb9zqdqn5sVh4EYpQHGZ536FgwCx2"}]],
"id": 1
}
估计是 JSON 解析的时候出错的,当用 Newtonsoft Json.NET 解析时不会出错。
更简单的测试用例:
{
"jsonrpc": "2.0",
"method": "getblockcount",
"params": [
],
"id": 1
}
JSON 解析错误
{
"jsonrpc": "2.0",
"method": "getblockcount",
"params": [],
"id": 1
}
JSON 解析正确
Please provide a readme or wiki documentation with instructions or at least links to the following topics:
For now, see https://github.com/sendqwertr/Documentation/blob/master/tutorials/neo-cli-setup.md
I know that once installed and running, there's the help
command but aside from that, some documentation would come in handy, especially for people that are new to NEO and want to play around.
Hi there, thanks for your work
It would be nice if you could update the wallet to a newer version from the wallet.
Make the update process user friendly and get the wallet in reach for non tech users.
Kind regards,
W
I transferred some neos from one account to another account using the cli..however, it was showing as balance and not confirmed.once I rebuild the index, those neos are missing! On Neo to gas website, it has been transferred to another address and is in the unspent state.
I double checked when I sent my Neo. Like it was to my another address. Is there anyway to get back my Neo?
We need to launch NEO node as daemon for accessing it using rpc at any time. How can i do this? Thanks.
I have a couple of questions about the CLI wallet. I have looked at the docs but don't see the answers.
What is the proper way to back up a wallet? I've seen mention of importing a WIF key but don't see a way to get this key for a CLI wallet.
How to set a password for the RPC server?
How to view incoming transactions for the wallet, I don't see a listtransactions or listsinceblock API call or anything?
Hi guys! Is there any way to generate address from jsonrpc? Found nothing about that in documentation. I'm trying to integrate your wallet to my service, so I need to generate addresses programmatically through api
Permanent crash when start neo-cli
error message: Failed to initialize CoreCLR, HRESULT: 0x8007001F
version: Neo CLI v2.3.2
os: centos 7
After restart neo-cli daemon, status not changing about 2-3 hours.
neo> show state
Height: 1605043/1605043, Nodes: 0
neo>
Tcpdump shows that packages on port 10333 transfer realy rare.
tcpdump -n -i eth0 port 10333
And after 2-3 hours packages on port 10333 start transfer more activetly and show state
show current height.
Why this can happen?
export key path
returns error no matter what i do (I do have permissions on the destination folder)
export key without path, works just fine
import key key
import key path
return error all the time as well
is there a way to debug the problem with the release binaries? 'error' doesn't give much help...
CLI version 2.1.0.0
Windows 10
wondering if neo implemented any fund ceasing feathers as punishment like Ethereum Casper is working on to punish the validating node in case of malfunction or abnormality detected? Then what are those conditions ?
Hi, I downloaded the Windows 10 version of the Neo wallet and successfully unzipped it. However when I launch the application file, a Windows command prompt window appears [neo> ...] and so the client application never starts and I can't begin downloading the blockchain. When I ran in troubleshooting mode, it gives the below error. Not sure how to get past this error?
...
Unhandled Exception: System.TypeInitializationException: The type initializer for 'Neo.Settings' threw an exception. ---> System.IO.FileNotFoundException: The configuration file 'config.json' was not found and is not optional.
at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload)
at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
at Neo.Settings..cctor()
--- End of inner exception stack trace ---
at Neo.Shell.MainService.OnStart(String[] args)
at Neo.Services.ConsoleServiceBase.Run(String[] args)
at Neo.Program.Main(String[] args)
It would be useful to be able to generate a signed transaction offline on an 'airgap' computer. This signed transaction can later be transferred to an online computer and broadcast on the blockchain.
The idea of this feature is to prevent exposure of the private key to a computer that is connected to the internet and hence reduce the risk of the private key being intercepted by malicious parties.
A comparable feature is offered for the Ethereum blockchain by MyEtherWallet.com
Worked perfectly for a week, now sync is zero, height is 0/0
NEO coin balance shows zero although NEOScan shows I still have the coins
How to sync the wallet?
Thank you
Hello.
We prepare install neo for exchange, how run in background and unlock wallet ?
help lists the folowing Wallet Commands:
...
export key [address] [path]
import key <wif|path>
but the source includes:
export block [path]
import block [path]
Seems like download is windows files. Many .dll files and reference to MS and no .deb?
I read all issues if I could find anything about this error:
neo> dotnet neo-cli.dll /rpc
error
It just give back an error in windows. Nothing else. Does anyone have a solution or is there an error log somewhere?
Added: Or is this not needed in windows to do this? And/or do I have to run a fully in sync wallet in order to use rpc or to get access to rpc? Because currently I try to reach it trough my browser and that doesn't work.
Neo Cli not downloading
Error:
Libleveldb.dll is missing on CentOS release, but its included on 'neo-cli-portable'.
How to reproduce:
[root@localhost ~]# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)
sudo yum install libunwind libicu unzip wget
curl -sSL -o dotnet.tar.gz https://go.microsoft.com/fwlink/?linkid=848821
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
[root@localhost ~]# dotnet --version
1.0.4
[root@localhost ~]# dotnet --info
.NET Command Line Tools (1.0.4)
Product Information:
Version: 1.0.4
Commit SHA-1 hash: af1e6684fd
Runtime Environment:
OS Name: centos
OS Version: 7
OS Platform: Linux
RID: centos.7-x64
Base Path: /opt/dotnet/sdk/1.0.4
neo-cli-centos.7-x64.zip
wget https://github.com/neo-project/neo-cli/releases/download/v2.0.1/neo-cli-centos.7-x64.zip
sudo mkdir -p /opt/neo-cli && sudo unzip neo-cli-centos.7-x64.zip -d /opt/neo-cli
cd /opt/neo-cli/neo
dotnet neo-cli.dll /rpc
neo-cli-portable.zip
wget https://github.com/neo-project/neo-cli/releases/download/v2.0.1/neo-cli-portable.zip
sudo mkdir -p /opt/neo-cli && sudo unzip neo-cli-portable.zip -d /opt/neo-cli
cd /opt/neo-cli/neo
dotnet neo-cli.dll /rpc
Someone posted this in the GUI branch but I think it's more relevant here
https://github.com/neo-project/neo-gui/issues/4
The ability to sign a transaction so that NEON wallet team could have their wallet have off-line signing functionality.
The current system of send assets assumes the box is 100% secure.
I create wallet with command
neo> create wallet /home/neo-cli/wallet.dat
password:*****
password:*****
If I just copy wallet file to backup folder, that that correct way? Or wallet file may damaged if on that time I do something operation with wallet?
Hi,
Is there any installation guide for Ubuntu server?
Thanks.
Hi. How can I auto open wallet in start neo-cli? In documentation written that You will need to open the wallet in the Neo-CLI node before executing this command.
That means that a should start neo-cli and manually open the wallet.
I want start neo-cli via sysetmd or upstart on Linux and open wallet automatically. How can I do that?
I use neo-cli on Ubuntu 14.04/16.04
tried to run, but I have Ubuntu 17.
$ dotnet ./neo-cli.dll .
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '1.1.1' was not found.
When typing CTRL-D
(stty EOF) in the terminal, the program crashes with core dump.
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Neo.Services.ConsoleServiceBase.RunConsole()
at Neo.Services.ConsoleServiceBase.Run(String[] args)
at Neo.Program.Main(String[] args)
Aborted (core dumped)
Expected behaviour:
Exit the command line interface
I setup private chain with four nodes on Ubuntu 14.04 as indicated in http://docs.neo.org/en-us/node/private-chain.html, but I got following error in one of the nodes. Is there minimum memory requirements to run private chains? Any help is appreciated.
neo>start consensus
[09:50:47] OnStart
[09:50:47] initialize: height=1 view=0 index=3 role=Backup
[09:51:18] timeout: height=1 view=0 state=Backup
[09:51:18] request change view: height=1 view=0 nv=1 state=Backup, ViewChanging
[09:51:25] OnChangeViewReceived: height=1 view=0 index=0 nv=1
[09:52:18] timeout: height=1 view=0 state=Backup, ViewChanging
[09:52:18] request change view: height=1 view=0 nv=2 state=Backup, ViewChanging
[09:52:25] OnChangeViewReceived: height=1 view=0 index=0 nv=2
[09:54:18] timeout: height=1 view=0 state=Backup, ViewChanging
[09:54:18] request change view: height=1 view=0 nv=3 state=Backup, ViewChanging
[09:54:26] OnChangeViewReceived: height=1 view=0 index=0 nv=3
[09:58:18] timeout: height=1 view=0 state=Backup, ViewChanging
[09:58:18] request change view: height=1 view=0 nv=4 state=Backup, ViewChanging
[09:58:25] OnChangeViewReceived: height=1 view=0 index=0 nv=4
[10:06:18] timeout: height=1 view=0 state=Backup, ViewChanging
[10:06:18] request change view: height=1 view=0 nv=5 state=Backup, ViewChanging
[10:06:21] OnPerpareRequestReceived: height=1 view=0 index=1 tx=1
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
at Neo.Consensus.ConsensusService.OnPerpareRequestReceived(ConsensusPayload p ayload, PerpareRequest message)
at Neo.Consensus.ConsensusService.LocalNode_InventoryReceived(Object sender, IInventory inventory)
at Neo.Network.LocalNode.Relay(IInventory inventory)
at Neo.Network.LocalNode.RemoteNode_InventoryReceived(Object sender, IInvento ry inventory)
at Neo.Network.RemoteNode.OnInventoryReceived(IInventory inventory)
at Neo.Network.RemoteNode.<StartProtocol>d__55.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__ 6_1(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, C ontextCallback callback, Object state)
at System.Threading.QueueUserWorkItemCallbackDefaultContext.System.Threading. IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
Aborted (core dumped)
In other words, how to sign a tx whose utxos owned by different privatekey?
The signatureData is at the end of the transaction data。Each utxo does not have its own signature data.
thanks.
I transfer to AWPCx12ahgtYFgNJJiRgi4vV7FnQPy3ckL 10 NEO, I check with the block chain and is confirma but my NEO doesn't appear on my wallet, please help!!!
when I click the link to download the portable CLI:
https://github.com/neo-project/neo-cli/releases/download/v2.0.1/neo-cli-portable.zip
I get redirected to an XML error:
"The request signature we calculated does not match the signature you provided. Check your key and signing method."
目前路径 \neo-cli-master\neo-cli\bin\Debug\netcoreapp1.0\ 下面有这个dll 但还是报错
libleveldb 这个dll应该放在哪个路径下呢
What ports to i need to open to run a full-node?
Here is my config:
ufw disable
ufw default deny incoming
ufw default allow outgoing
ufw allow ssh
ufw allow 10333/tcp
ufw enable
Now why i'm asking which ports is that i'm getting a lot of [UFW BLOCK]
logs
May I have a link for the instructions to download windows Client. I appreciate your time. Thank you.
I compiled neo-cli from source using the README instructions (see #22). I am able to create a new wallet, but I get an error when trying to open it. I can open the wallet using the compiled binary wallet. So I think there is a bug when opening the wallet, not when saving it.
I created a new wallet:
../dotnet neo-cli/bin/Debug/netcoreapp1.0/neo-cli.dll
neo>create wallet wallet.db3
password:****
password:****
address: AXFeCtob7JdrN78qnV95rxKiFUw32VPja5
pubkey: 02e0b70529c9b44084f63e7046afedad1e3fc7fa77fb4763845439fc63024e87e3
neo>exit
I then try to load the wallet:
neo>open wallet neo-cli/bin/Debug/netcoreapp1.0/wallet.db3
password:****
failed to open file "neo-cli/bin/Debug/netcoreapp1.0/wallet.db3"
When I use the compiled binary I can open the wallet and see the address. I attached the wallet as a zip file. The password is 1234
. There's no money in it.
When you have address A which has 2 NEO on it and you send 1 to address B then NEO doesn't create a different change address but just sends 1 to address B and 1 to address A.
Now when we want to know how much we have actually received on address A we can't also add up those change transactions.
So we need to be able to check the address the transaction came from.
Is there any way to do this in the rpc api?
My system is centos 7, after I run dotnet neo-cli.dll /rpc
, neo-cli will raise a exception, error log is below:
Unhandled Exception: System.InvalidOperationException: Operation is not valid due to the current state of the object.
at Neo.VM.RandomAccessStack`1.Peek(Int32 index)
at Neo.SmartContract.ApplicationEngine.CheckArraySize()
at Neo.SmartContract.ApplicationEngine.Execute()
at Neo.Implementations.Blockchains.LevelDB.LevelDBBlockchain.Persist(Block block)
at Neo.Implementations.Blockchains.LevelDB.LevelDBBlockchain.PersistBlocks()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
Aborted
Now the height is 718486, please help, thanks.
Hi,
I'm a new user of fedora and downloaded rhel x64 but unable to install it.
please let me know all the installation procedure including commands.
Hi,
I am struggling with neo-cli
for some time and unfortunately didn't manage to run it as for now.
When I run dotnet neo-cli.dll
I get Segmentation fault
error. More info is available when I used diagnostics flag.
root@host:/home/neo/node# dotnet -d neo-cli.dll
Telemetry is: Disabled
projectfactory: MSBUILD_EXE_PATH = /usr/share/dotnet/sdk/1.1.4/MSBuild.dll
projectfactory: MSBuild project path =
projecttoolscommandresolver: ProjectFactory did not find Project.
Microsoft.DotNet.Cli.Utils.CommandUnknownException: No executable found matching command "dotnet-neo-cli.dll"
at Microsoft.DotNet.Cli.Utils.Command.Create(ICommandResolverPolicy commandResolverPolicy, String commandName, IEnumerable`1 args, NuGetFramework framework, String configuration, String outputPath, String applicationName)
at Microsoft.DotNet.Cli.Utils.Command.Create(String commandName, IEnumerable`1 args, NuGetFramework framework, String configuration, String outputPath, String applicationName)
at Microsoft.DotNet.Cli.Program.ProcessArgs(String[] args, ITelemetry telemetryClient)
at Microsoft.DotNet.Cli.Program.Main(String[] args)
root@host:/home/neo/node# dotnet --info
.NET Command Line Tools (1.1.4)
Product Information:
Version: 1.1.4
Commit SHA-1 hash: d2f3571419
Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /usr/share/dotnet/sdk/1.1.4
Do you have any ideas what can be wrong?
Thanks in advance,
Regards
Hello, i just downlaoded NEO-GUI
after the installation i have made a private wallet and saved it to XXNAME.DB3
Put in my password en "something" is opened called :
Standard account
adresblabla<
I've send a small amount of neo to this account but now after 30minutes i see nothing in my wallet.
Who can help me out?
Regards Tj
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.