Giter Site home page Giter Site logo

zenprotocol / zen-wallet Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 13.0 121.93 MB

Node and GUI for the Zen Protocol.

Home Page: https://www.zenprotocol.com

License: Other

C# 78.87% F# 19.98% Shell 0.34% ASP 0.01% CSS 0.39% JavaScript 0.23% HTML 0.16% Batchfile 0.03%
bitcoin blockchain formal-methods formal-verification smart-contracts utxo

zen-wallet's Introduction

Zen Protocol

Build

Linux

  1. Install mono-devel from http://www.mono-project.com/download. If you choose to install via a package manager, add Mono's own repository first.
  2. Install lmdb. The package name is liblmdb0 on Ubuntu and lmdb on Fedora.
  3. Run the following:
./paket restore
chmod +x packages/zen_z3_linux/output/z3-linux 
msbuild src

OSX

  1. Install Mono as in step 1 of the instructions for Linux.
  2. Install lmdb. You can get it via brew with brew install lmdb.
  3. Run the following:
./paket restore
chmod +x packages/zen_z3_osx/output/z3-osx
msbuild src

Windows

Windows is not yet supported

Run

Linux and OSX

cd src/Node/bin/Debug
./zen-node

Windows

cd src\Node\bin\Debug
zen-node.exe

CLI

You can communicate with the node with zen-cli. Enter the bin directory of the node (src/Node/bin/Debug) and run:

Linux and OSX

./zen-cli --help

License

This software is available under the Zen Protocol Software License, which may be viewed at LICENSE.md.

zen-wallet's People

Contributors

a-manning avatar elanper avatar kaichaosun avatar sharonu avatar somdoron avatar topynate avatar urbansharon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zen-wallet's Issues

Error out when trying to get test Zens from Faucet

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+WrappedAsyncVoid1[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+WrappedAsyncVoid1[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.EndInvokeVoidDelegate1[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+WrappedAsyncResultBase1[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

Discovery error with peer: NBitcoin.Protocol.NetworkAddress OperationCanceledException: The operation was canceled

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.BlockingCollection1[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.PollMessageListener1[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

System.TypeInitializationException on ubuntu

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?

TransactionValidation.fs does not need to verify the 'bounds' of a contract?

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)???

Uncaught Exception in zenwallet install

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)

Block stuck at 1/783

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

Unable to load DLL 'libglib-2.0-0.dll'

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)

Unable to find "(Web/Contract Details)"

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. :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.