Code Monkey home page Code Monkey logo

nulink-network / nulink-core Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 4.0 27.57 MB

NuLink network is a decentralized solution for privacy-preserving applications developers to implement best practices and best of breed security and privacy.

License: GNU Affero General Public License v3.0

Dockerfile 0.02% Shell 0.07% Makefile 0.10% PowerShell 0.01% Python 94.74% Solidity 0.91% Mako 0.04% Vyper 0.08% Batchfile 0.04% Roff 0.87% CSS 0.04% Smarty 0.01% HTML 2.97% DIGITAL Command Language 0.01% GAP 0.10%

nulink-core's People

Contributors

andi2233i avatar oneshut avatar pawnz0 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

nulink-core's Issues

Not enough nodes when create policy

When creating policy with a large shares, the system could not find enough worker nodes. Can add a backup route to provide stable nodes for selection. Could shift to the backup route when wait enough time(say 20 secs or more).

Restarting services ?

Describe the Bug
TypeError: argument of type 'NoneType' is not iterable

To Reproduce
nulink ursula run --config-file /home/ubuntu/nulink-1/ursula.json --rest-port 9151 --no-block-until-ready

Traceback or Screenshots (Optional)
OperatorBondedTracker: โœ“ Operator 0xE9Dbe1B2D0207FB542C76a10c9686A67fb619F4c is bonded to staking provider 0xE9Dbe1B2D0207FB542C76a10c9686A67fb61
9F4c
_start_ursula
Restarting services
x [Operator 0xE9Dbe1B2D0207FB542C76a10c9686A67fb619F4c is no longer bonded to any staking provider] - Commencing auto-shutdown sequence...
OperatorNoLongerBonded
finally _shutdown_ursula
OperatorBondedTracker run exception: Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.8/site-packages/nulink/network/trackers.py", line 74, in run
self._start_ursula(start_service=False)
File "/home/ubuntu/.local/lib/python3.8/site-packages/nulink/network/trackers.py", line 104, in _start_ursula
restart_run_arg_add('--start-service', str(start_service))
File "/home/ubuntu/.local/lib/python3.8/site-packages/nulink/network/trackers.py", line 92, in restart_run_arg_add
if option_str in self._restart_run_args and (origin_option_index := self._restart_run_args.index(option_str)) >= 0:
TypeError: argument of type 'NoneType' is not iterable

System (please complete the following information):

  • OS Version: Ubuntu 20.04.3 LTS
  • NULINK Version: 0.1.0
  • Ethereum Node Version:

transaction underpriced

Hi, after I bond the worker address, I found the following output. Am I doing something wrong? what should I do?

log

The version check mechanism is missing when handshake and ping.

Describe the Bug
The version check mechanism is missing when ping a node. This would cause uncompatible version would interrupt each other.

To Reproduce
When ping a node with an old version which is not compatible with the current version, it does not report any warning.

Suggestion to fix
Maybe it could add a version check mechanism while handshare or ping. And only those nodes with compatible versions could discover each other.

The worker checking mechanism is missing.

Describe the Bug
In current version, when bonding a worker node, it will only check if the node uri is online, and the current node uri has been used or not. But if the node uri is online and not been used before, it can be used for bonding neglect the real status of the worker nodes.

To Reproduce
If you can ping a false node with xxx:9151 URI, and use it to bond any fresh worker account to a fresh staker account. You will succeed. But this nodes is not runing at all.

Suggestion to fix it
Add a checking mechanism: when the backend server ping the node, the node need to return a signature which is signed by the worker account, the message is the node uri. Then when server check the signature, it can check if this worker is running with specific URI. This is one suggestion, maybe we can discuss it with other possibility to fix it.

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.