zenprotocol / zen-wallet Goto Github PK
View Code? Open in Web Editor NEWNode and GUI for the Zen Protocol.
Home Page: https://www.zenprotocol.com
License: Other
Node and GUI for the Zen Protocol.
Home Page: https://www.zenprotocol.com
License: Other
When following the tutorial, and you run:
zen-wallet wipe mine
I get the following error:
Error - Unhandled exception wallet System.Exception: Could not handle GetAddressPKHash
following the instructions for OSX (https://www.zenprotocol.com/alpha).
Full Stack:
Network(E) Discovery error with peer: NBitcoin.Protocol.NetworkAddress OperationCanceledException: The operation was canceled. at System.Collections.Concurrent.BlockingCollection1[T].TryTakeWithNoTimeValidation (T& item, System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken, System.Threading.CancellationTokenSource combinedTokenSource) [0x0008e] in <5afdc70d980c4033b3878286f754d091>:0 at System.Collections.Concurrent.BlockingCollection
1[T].TryTake (T& item, System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00006] in <5afdc70d980c4033b3878286f754d091>:0
at System.Collections.Concurrent.BlockingCollection1[T].Take (System.Threading.CancellationToken cancellationToken) [0x00000] in <5afdc70d980c4033b3878286f754d091>:0 at NBitcoin.Protocol.PollMessageListener
1[T].ReceiveMessage (System.Threading.CancellationToken cancellationToken) [0x00006] in :0
at NBitcoin.Protocol.NodeListener.ReceivePayload[TPayload] (System.Threading.CancellationToken cancellationToken) [0x000d1] in :0
at NBitcoin.Protocol.Node.VersionHandshake (NBitcoin.Protocol.NodeRequirement requirements, System.Threading.CancellationToken cancellationToken) [0x00044] in :0
at NBitcoin.Protocol.Node.VersionHandshake (System.Threading.CancellationToken cancellationToken) [0x00000] in :0
at NBitcoin.Protocol.AddressManager+<>c__DisplayClass70_0.b__1 (NBitcoin.Protocol.NetworkAddress p) [0x00086] in :0
In the alpha release documentation, there is a step to "Create a call option". (Web/Contract Details), according to the instruction, means when visiting "https://alpha.zenprotocol.com/", there should be a tab called "Contract Details". However, I am unable to find such a tab on the website. Perhaps I missed something? Thank you very much for your time. :)
Go to https://alpha.zenprotocol.com/Faucet, enter my address 1QijnRSLm+dQOFKrlWPr17qqfwa8YE9xBawBrGKkC30I=
Click 'submit'. It errors out after 20 seconds. Further more, the url was then redirected to https://alpha.zenprotocol.com/Faucet/GetTokens, If I directly visit https://alpha.zenprotocol.com/Faucet/GetTokens, the stacktrace is exposed as:
System.Web.HttpException
The resource cannot be found.
Description: HTTP 404.The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Details: No virtual path information available.
Exception stack trace:
at System.Web.Mvc.Controller.HandleUnknownAction (System.String actionName) [0x0006b] in :0
at System.Web.Mvc.Controller.b__1d (System.IAsyncResult asyncResult, System.Web.Mvc.Controller+ExecuteCoreState innerState) [0x0000f] in :0
at (wrapper delegate-invoke) System.Web.Mvc.Async.EndInvokeVoidDelegate1[System.Web.Mvc.Controller+ExecuteCoreState]:invoke_void_IAsyncResult_TState (System.IAsyncResult,System.Web.Mvc.Controller/ExecuteCoreState) at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncVoid
1[TState].CallEndDelegate (System.IAsyncResult asyncResult) [0x00000] in :0
at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResultBase1[TResult].End () [0x00029] in <cc73190bab9d435c831510ff295c572a>:0 at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult] (System.IAsyncResult asyncResult, System.Object tag) [0x00007] in <cc73190bab9d435c831510ff295c572a>:0 at System.Web.Mvc.Async.AsyncResultWrapper.End (System.IAsyncResult asyncResult, System.Object tag) [0x00000] in <cc73190bab9d435c831510ff295c572a>:0 at System.Web.Mvc.Controller.EndExecuteCore (System.IAsyncResult asyncResult) [0x00000] in <cc73190bab9d435c831510ff295c572a>:0 at System.Web.Mvc.Controller.<BeginExecute>b__15 (System.IAsyncResult asyncResult, System.Web.Mvc.Controller controller) [0x00000] in <cc73190bab9d435c831510ff295c572a>:0 at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncVoid
1[TState].CallEndDelegate (System.IAsyncResult asyncResult) [0x00000] in :0
at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResultBase1[TResult].End () [0x00029] in <cc73190bab9d435c831510ff295c572a>:0 at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult] (System.IAsyncResult asyncResult, System.Object tag) [0x00007] in <cc73190bab9d435c831510ff295c572a>:0 at System.Web.Mvc.Async.AsyncResultWrapper.End (System.IAsyncResult asyncResult, System.Object tag) [0x00000] in <cc73190bab9d435c831510ff295c572a>:0 at System.Web.Mvc.Controller.EndExecute (System.IAsyncResult asyncResult) [0x00000] in <cc73190bab9d435c831510ff295c572a>:0 at System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute (System.IAsyncResult asyncResult) [0x00000] in <cc73190bab9d435c831510ff295c572a>:0 at System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5 (System.IAsyncResult asyncResult, System.Web.Mvc.MvcHandler+ProcessRequestState innerState) [0x00000] in <cc73190bab9d435c831510ff295c572a>:0 at (wrapper delegate-invoke) System.Web.Mvc.Async.EndInvokeVoidDelegate
1[System.Web.Mvc.MvcHandler+ProcessRequestState]:invoke_void_IAsyncResult_TState (System.IAsyncResult,System.Web.Mvc.MvcHandler/ProcessRequestState)
at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncVoid1[TState].CallEndDelegate (System.IAsyncResult asyncResult) [0x00000] in <cc73190bab9d435c831510ff295c572a>:0 at System.Web.Mvc.Async.AsyncResultWrapper+WrappedAsyncResultBase
1[TResult].End () [0x00029] in :0
at System.Web.Mvc.Async.AsyncResultWrapper.End[TResult] (System.IAsyncResult asyncResult, System.Object tag) [0x00007] in :0
at System.Web.Mvc.Async.AsyncResultWrapper.End (System.IAsyncResult asyncResult, System.Object tag) [0x00000] in :0
at System.Web.Mvc.MvcHandler.EndProcessRequest (System.IAsyncResult asyncResult) [0x00000] in :0
at System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest (System.IAsyncResult result) [0x00000] in :0
at System.Web.HttpApplication.async_handler_complete_cb (System.IAsyncResult ar) [0x00015] in <347f335902b24586a53361aa1278a360>:0
Version Information: 5.4.0.201 (tarball Fri Oct 13 21:51:45 UTC 2017); ASP.NET Version: 4.0.30319.42000
I followed the steps to run the wallet on ubuntu but ran into the following error:
**$$* Node starting with args:
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'Consensus.Tests' threw an exception. ---> System.TypeInitializationException: The type initializer for '<StartupCode$Consensus>.$Consensus.Tests' threw an exception. ---> System.MissingMethodException: Method 'DateTimeOffset.ToUnixTimeSeconds' not found.
--- End of inner exception stack trace ---
at Consensus.Tests..cctor () <0x411cff20 + 0x0000b> in <filename unknown>:0
--- End of inner exception stack trace ---
at Zen.App.get_GenesisBlock () <0x411c8960 + 0x00333> in <filename unknown>:0
at Zen.App.get_AppBlockChain () <0x411c86a0 + 0x0005b> in <filename unknown>:0
at Zen.App.get_WalletManager () <0x411c8600 + 0x0001f> in <filename unknown>:0
at Zen.App.Init () <0x411c85c0 + 0x0000f> in <filename unknown>:0
at Zen.Program.Init (Boolean connect) <0x411c8380 + 0x0006b> in <filename unknown>:0
at Zen.Program.Main (System.String[] args) <0x4114a000 + 0x00b47> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'Consensus.Tests' threw an exception. ---> System.TypeInitializationException: The type initializer for '<StartupCode$Consensus>.$Consensus.Tests' threw an exception. ---> System.MissingMethodException: Method 'DateTimeOffset.ToUnixTimeSeconds' not found.
--- End of inner exception stack trace ---
at Consensus.Tests..cctor () <0x411cff20 + 0x0000b> in <filename unknown>:0
--- End of inner exception stack trace ---
at Zen.App.get_GenesisBlock () <0x411c8960 + 0x00333> in <filename unknown>:0
at Zen.App.get_AppBlockChain () <0x411c86a0 + 0x0005b> in <filename unknown>:0
at Zen.App.get_WalletManager () <0x411c8600 + 0x0001f> in <filename unknown>:0
at Zen.App.Init () <0x411c85c0 + 0x0000f> in <filename unknown>:0
at Zen.Program.Init (Boolean connect) <0x411c8380 + 0x0006b> in <filename unknown>:0
at Zen.Program.Main (System.String[] args) <0x4114a000 + 0x00b47> in <filename unknown>:0
I'm running
Linux version 4.4.0-101-generic (buildd@lcy01-amd64-006) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.5) ) #124-Ubuntu SMP Fri Nov 10 18:29:59 UTC 2017
Something to do with Method 'DateTimeOffset.ToUnixTimeSeconds' not found.
? Could this be something to do with missing .NET functions?
When I try to start Zen wallet (on Windows 8.1) I get in console the following text with error
***** Node starting with args:
BlockChain(I) No tip.
Network(I) Magic is 1
Network(I) Warning, found 2 internal addresses
Network(W) Remaining peers to get : 10
System.DllNotFoundException: Unable to load DLL 'libglib-2.0-0.dll': The specifi
ed module could not be found. (Exception from HRESULT: 0x8007007E)
at GLib.Marshaller.g_malloc(UIntPtr size)
at GLib.Marshaller.StringToPtrGStrdup(String str)
at GLib.Global.set_ProgramName(String value)
at Gtk.Application.SetPrgname()
at Gtk.Application.Init()
at Wallet.App.Start(WalletManager walletManager, NodeManager nodeManager)
at Zen.App.GUI(Boolean shutdownOnClose)
at Zen.Program.Main(String[] args)Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'libglib-2.
0-0.dll': The specified module could not be found. (Exception from HRESULT: 0x80
07007E)
at GLib.Marshaller.g_malloc(UIntPtr size)
at GLib.Marshaller.StringToPtrGStrdup(String str)
at GLib.Global.set_ProgramName(String value)
at Gtk.Application.SetPrgname()
at Gtk.Application.Init()
at Wallet.App.Start(WalletManager walletManager, NodeManager nodeManager)
at Zen.App.GUI(Boolean shutdownOnClose)
at Zen.Program.Main(String[] args)
I'm just wondering if there's an obvious reason as to why I can download the blockchain and when it reaches 782/783, it resets back to 1/783 and then stays there? The console logs below are all it produces. I've left it overnight several times and reset the blockchain numerous times.
I'm running Ubuntu 17.10 and Zen wallet is the latest alpha version.
Network(I) Sending PingPayload to 35.163.150.86
Network(V) Receiving VersionPayload from 34.213.103.167
Network(I) Sending PingPayload to 52.42.204.73
Network(V) Receiving PingPayload from 54.218.16.136
Network(I) Sending PongPayload to 54.218.16.136
Network(V) Receiving PongPayload from 52.42.204.73
Network(V) Receiving PongPayload from 54.218.16.136
Network(V) Receiving PingPayload from 52.42.204.73
Network(I) Sending PongPayload to 52.42.204.73
Network(I) Sending PingPayload to 34.213.103.167
Network(V) Receiving PongPayload from 34.213.103.167
Network(V) Receiving PingPayload from 34.213.103.167
Network(I) Sending PongPayload to 34.213.103.167
According the zen protocol's white paper, contract 'bounds' represents the amount of computation needed to run the F* program. If a miner receives a transaction containing a contract which declares a very small number for bounds, but in fact has a very large number for bounds, the miner will be tricked to prioritize such a transaction (if the transaction validation does not validate the bounds)???
When tryinging to run the executable i get the following error. Ubuntu 16.04, zenwalletv0.9.69
A JavaScript error occurred in the main process
Uncaught Exception:
SyntaxError: Malformed JSON in file: /home/user/.config/zenwallet/zen-wallet-db.json
Unexpected string in JSON at position 2460
at n.parse [as deserialize] ()
at n.value (/home/user/Downloads/zen-wallet-0.9.67/resources/app.asar/main.prod.js:1:167213)
at gi.t.read (/home/user/Downloads/zen-wallet-0.9.67/resources/app.asar/main.prod.js:1:168079)
at e.exports (/home/user/Downloads/zen-wallet-0.9.67/resources/app.asar/main.prod.js:1:168288)
at Object../app/services/db.js (/home/user/Downloads/zen-wallet-0.9.67/resources/app.asar/main.prod.js:1:10551)
at t (/home/user/Downloads/zen-wallet-0.9.67/resources/app.asar/main.prod.js:1:279)
at Object../app/ZenNode.js (/home/user/Downloads/zen-wallet-0.9.67/resources/app.asar/main.prod.js:1:1367)
at t (/home/user/Downloads/zen-wallet-0.9.67/resources/app.asar/main.prod.js:1:279)
at Object../app/main.dev.js (/home/user/Downloads/zen-wallet-0.9.67/resources/app.asar/main.prod.js:1:7319)
at t (mypath/zen-wallet-0.9.67/resources/app.asar/main.prod.js:1:279)
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.