question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create Instructions on how to setup a Trinity node for development

See original GitHub issue

What is wrong?

The Trinity Readme only lists a couple of environment variables but has no further information on how to setup and run a Trinity node.

This should be fixed to make it easier to onboard new contributors.

Here’s what I tried to run the simple JSON-RPC server.

$ python3 trinity/rpc/server.py -db foo
Traceback (most recent call last):
  File "trinity/rpc/server.py", line 114, in <module>
    privkey=ecies.generate_privkey(),
  File "/home/cburgdorf/Documents/hacking/py-evm/evm/chains/base.py", line 292, in configure
    return super().configure(name, **overrides)
  File "/home/cburgdorf/Documents/hacking/py-evm/evm/utils/datatypes.py", line 18, in configure
    "not found on the base class `{2}`".format(cls.__name__, key, cls)
TypeError: The LightChain.configure cannot set attributes that are not already present on the base class. The attribute `privkey` was not found on the base class `<class 'p2p.lightchain.LightChain'>`

It’s most likely related to the fact that I have not setup the environment variables. I actually have no idea how I would create a key to set as TRINITY_NODEKEY for instance.

The tinkerer in me tried to run TRINITY_NODEKEY='foo' && python3 trinity/rpc/server.py -db foo but that gave me the same error.

Long story short, the Readme should be newbie friendly and needs clear steps to get the node running.

How can it be fixed

If someone can give me a couple of pointers I can happily compile that into a Readme update

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
cburgdorfcommented, Mar 8, 2018

I’m waiting for the dust to settle in https://github.com/ethereum/py-evm/pull/382 and then I will update the docs / Readme to make sure everyone has a smooth experience on how to run trinity with the different options.

0reactions
cburgdorfcommented, Jun 5, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Trinity-ETH Network Configuration Guide
1.Use create wallet command to set up an address before using the channel. trinity> create wallet <your wallet file name>. 2.Open the existing ......
Read more >
Tutorial: Setting up a Trinity Network Credit node on Windows 10
To verify that the installation was successful, open Command Prompt by pressing Window+R, and type cmd. Type python into the window and you ......
Read more >
Node Configuration for Trinity Wallet Support - IOTA Blog
If you set up your node by following a tutorial, please contact the author of the tutorial and share this blog post. If...
Read more >
Setting up a Node development environment - MDN Web Docs
Node and Express make it very easy to set up your computer in order to start developing web applications. This section provides an...
Read more >
Trinity Release 3.5.X - Command Line Reference Guide
The terms Trinity and ForeFront are trademarks of Patton Electronics Company. ... Creating an ACL Profile and Entering Configuration Mode .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found