Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 22 2016 09:58
    @chriseth banned @yinyunqiao
  • Jun 20 2016 14:14
    @chriseth banned @heryscram
  • Jun 19 2016 10:22
    @chriseth banned @algotrader2013
  • Jun 13 2016 13:05
    @chriseth banned @trismegistis
  • Jun 06 2016 15:42
    @chriseth banned @honve
  • Jun 05 2016 10:36
    @chriseth banned @adamskee
renataBakeer
@renataBakeer
here
I need help
GreatYoungShaw
@GreatYoungShaw
Does anybody have some reference code to realize lottery in Solidity?
Daniel Connelly
@Danc2050

Hello. I am trying to make multiple requests using Aleth in Python and wanted to know how to stagger my requests. I am making two calls to each block (~9 million blocks) and then for each txn in the entire chain I am planning on making 1 requests/calls. This is a one-time mission.

I am trying to be nice, rather than use proxies and go at it full force. Does anyone have any knowledge on who could answer my question?

ReeceNee
@ReeceNee
no one is here
xiaofo09
@xiaofo09
Hello, I wanna develop ethereum client using C++. I need key generation function and sign function. Is there some guideline to use Aleth as library ?
Godtide
@Godtide
Hello guys.
i'm new here, and I hope to ask a lot rookie question soon. Pls bear with me
Joseph Nicholas R. Alcantara
@josephnicholas
@holiman hello, just wanted to ask on the task ethereum/aleth#4613 it seems like the last few comments were not that clear on the goal of the task. :)
Andrei Maiboroda
@gumb0
@josephnicholas I answered you in the issue
Peteris Erins
@Pet3ris
Hi All, does Aleth contain argument serialization functions for smart contracts, something that can turn a set of args [1, "a"] into appropriate calldata and the same for contract deployment?
Joseph Nicholas R. Alcantara
@josephnicholas
@gumb0 thanks, one last question though, so how do I test my implemented code? Like when I pass a codeFile what would my expectation be?
Andrei Maiboroda
@gumb0
@josephnicholas it should be the same as calling aleth-vm <filepath> now - it reads hex data from a file and passes it to VM
for example currently it works for me like this with the code in the command line:
> aleth-vm/aleth-vm --log-verbosity 4 --code 606060005260206000f3 --network Istanbul trace --flat --mnemonics
{"depth":"0","gas":"9223372036854775807","gasCost":"3","memory":[],"op":"PUSH1","pc":"0","stack":[],"storage":{}}
{"depth":"0","gas":"9223372036854775804","gasCost":"3","op":"PUSH1","pc":"2","stack":["0x60"]}
{"depth":"0","gas":"9223372036854775801","gasCost":"3","op":"MSTORE","pc":"4","stack":["0x60","0x00"]}
{"depth":"0","gas":"9223372036854775795","gasCost":"3","memory":["0000000000000000000000000000000000000000000000000000000000000060"],"op":"PUSH1","pc":"5","stack":[]}
{"depth":"0","gas":"9223372036854775792","gasCost":"3","op":"PUSH1","pc":"7","stack":["0x20"]}
{"depth":"0","gas":"9223372036854775789","gasCost":"0","op":"RETURN","pc":"9","stack":["0x20","0x00"]}
DEBUG 10-02 12:16:38 aleth-vm overlaydb Closing state DB
and like this with the same code from file:
aleth-vm/aleth-vm --log-verbosity 4 --network Istanbul trace --flat --mnemonics code.hex 
{"depth":"0","gas":"9223372036854775807","gasCost":"3","memory":[],"op":"PUSH1","pc":"0","stack":[],"storage":{}}
{"depth":"0","gas":"9223372036854775804","gasCost":"3","op":"PUSH1","pc":"2","stack":["0x60"]}
{"depth":"0","gas":"9223372036854775801","gasCost":"3","op":"MSTORE","pc":"4","stack":["0x60","0x00"]}
{"depth":"0","gas":"9223372036854775795","gasCost":"3","memory":["0000000000000000000000000000000000000000000000000000000000000060"],"op":"PUSH1","pc":"5","stack":[]}
{"depth":"0","gas":"9223372036854775792","gasCost":"3","op":"PUSH1","pc":"7","stack":["0x20"]}
{"depth":"0","gas":"9223372036854775789","gasCost":"0","op":"RETURN","pc":"9","stack":["0x20","0x00"]}
DEBUG 10-02 12:18:44 aleth-vm overlaydb Closing state DB
Joseph Nicholas R. Alcantara
@josephnicholas
Thanks @gumb0
ultranetorg
@ultranetorg
Hello, could anybody explain how to run http ipc for aleth so I can play with ethereum api using a browser?
ultranetorg
@ultranetorg
or if there is no such capability then some example of how to connect to aleth using c++
Chris Calderon
@SerpentChris
Does anyone know if aleth will build on powerpc OS X?
Andrei Maiboroda
@gumb0
@ultranetorg you have to use scripts/dopple.py to enable HTTP RPC
ultranetorg
@ultranetorg
@gumb0 thx, how to run it properly? I tried python 3.7 but it does not work
Nils-Erik Frantzell
@halfalicious
@ultranetorg What sort of issues are you encountering? Are you running on Windows or *nix?
@SerpentChris The only way to determine this is to try :)
Chris Calderon
@SerpentChris
It didn't build. I've tries building on ppc64 linux and that also didn't work. :(
Chris Calderon
@SerpentChris
I'm getting this error when attempting to build on PPC64 Linux:
CMake Error at /home/christian/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/find/FindBoost.cmake:1273 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.70.0

  Boost include path:
  /home/christian/.hunter/_Base/c022f0c/ca581fa/02f0220/Install/include

  Could not find the following static Boost libraries:

          boost_program_options
          boost_filesystem
          boost_system
          boost_thread
          boost_context
          boost_fiber
          boost_log

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  /home/christian/.hunter/_Base/c022f0c/ca581fa/02f0220/Install/lib/cmake/Boost/BoostConfig.cmake:51 (find_package)
  CMakeLists.txt:66 (find_package)



[hunter ** INTERNAL **] Library not exists: Boost_PROGRAM_OPTIONS_LIBRARY_DEBUG-NOTFOUND
[hunter ** INTERNAL **] [Directory:/home/christian/.hunter/_Base/c022f0c/ca581fa/02f0220/Install/lib/cmake/Boost]

------------------------------ ERROR -----------------------------
    https://docs.hunter.sh/en/latest/reference/errors/error.internal.html
------------------------------------------------------------------

CMake Error at /home/christian/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message):
Call Stack (most recent call first):
  /home/christian/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/modules/hunter_internal_error.cmake:13 (hunter_error_page)
  /home/christian/.hunter/_Base/c022f0c/ca581fa/02f0220/Install/lib/cmake/Boost/BoostConfig.cmake:99 (hunter_internal_error)
  CMakeLists.txt:66 (find_package)


CMake Error at CMakeLists.txt:66 (find_package):
  Found package configuration file:

    /home/christian/.hunter/_Base/c022f0c/ca581fa/02f0220/Install/lib/cmake/Boost/BoostConfig.cmake

  but it set Boost_FOUND to FALSE so package "Boost" is considered to be NOT
  FOUND.


-- Configuring incomplete, errors occurred!
See also "/home/christian/aleth/build/CMakeFiles/CMakeOutput.log".
Do I need to install the boost libraries via apt?
Michael Connor
@iAmMichaelConnor
Hi! I'd like to run the fastest possible local blockchain instance for a project. I figure aleth will be the fastest with its cpp backend (and much much faster than ganache). Is this assumption broadly true?
Follow-up Q: will truffle tests work if I point truffle to an aleth blockchain running on localhost?
Peteris Erins
@Pet3ris
Hi Channel, is aleth appropriate to use for smart contract testing with C++? Are there any tutorials / example repositories effectively using aleth as a library?
Chris Calderon
@SerpentChris
I ended up re attempting to build aleth on PPC64 Linux, and got to a a slightly different breaking point. I re-cloned the repo, checkout out the release/1.6 branch, then did git submodule update --init. Then I did the cmake build procedure again, and this time the build failed at the configure phase while building crc32c. It seems that crc32c doesn't know what to do for building on PPC64.
Nils-Erik Frantzell
@halfalicious
@SerpentChris Typically you shouldn't need to manually install any packages as the source should be pulled down automatically via Hunter (a C++ package manager) and built locally. I'm not sure why it's not finding the boost source - @chfast : Any ideas? Also, @SerpentChris Can you please open a new issue?
Nils-Erik Frantzell
@halfalicious

@iAmMichaelConnor It depends on what you want to use it for - it can be quite fast when configured to use an in-memory database (via the --db=memorydb option) or when the state database isn't too big, but if the state database gets too large then it can be quite slow. For example, while Aleth is protocol-compliant with mainnet, you can't sync to chain head since at one point the state database will get so big that the time it takes to import new blocks will exceed the cadence at which new blocks are produced, meaning you'll never catch up.

We haven't thoroughly tested Truffle with Aleth. I tried playing around with it a few weeks ago and it kind of worked...for example, Truffle uses an RPC function that Aleth doesn't implement but I don't think that was a blocker. I also occasionally hit number overflow errors, though it's possible I was calling the RPC functions incorrectly. It might work for what you want to do, the best way to determine this is to try it out :grinning:

@Pet3ris Can you clarify what sort of testing you want to do?

Unfortunately we don't have any tutorials for something like that... @chfast might be able to point you in the right direction

Peteris Erins
@Pet3ris
@halfalicious basically using aleth as an alternative to the geth simulated back-end or web3.py - spinning up a dev blockchain, deploying contracts, issuing transactions, checking for return values of calls, etc.
Peteris Erins
@Pet3ris
one issue I'm dealing with right now is that the --test network coinbase account seems to have a 0 balance and haven't yet found a way to provide a higher balance in the genesis.json.
Nils-Erik Frantzell
@halfalicious

@Pet3ris Yes, Aleth should work for that provided you don't need to test mainnet. It works best on Ropsten or a private chain. The reason that testing mainnet is not recommended is that Aleth's management of the state isn't the best which results in significant perf problems the closer to chain tip that you get.

Regarding --test not working - can you please open a new issue? In the mean-time, please see the following on how to fund an account (on a private chain): https://github.com/ethereum/aleth/blob/master/doc/private_net_remix.rst

Relevant json snippet: "accounts": {
"0000000000000000000000000000000000000001": { "precompiled": { "name": "ecrecover", "linear": { "base": 3000, "word": 0 } }, "balance": "0x01" },
"0000000000000000000000000000000000000002": { "precompiled": { "name": "sha256", "linear": { "base": 60, "word": 12 } }, "balance": "0x01" },
"0000000000000000000000000000000000000003": { "precompiled": { "name": "ripemd160", "linear": { "base": 600, "word": 120 } }, "balance": "0x01" },
"0000000000000000000000000000000000000004": { "precompiled": { "name": "identity", "linear": { "base": 15, "word": 3 } }, "balance": "0x01" },
"0000000000000000000000000000000000000005": { "precompiled": { "name": "modexp" }, "balance": "0x01" },
"0000000000000000000000000000000000000006": { "precompiled": { "name": "alt_bn128_G1_add", "linear": { "base": 500, "word": 0 } }, "balance": "0x01" },
"0000000000000000000000000000000000000007": { "precompiled": { "name": "alt_bn128_G1_mul", "linear": { "base": 40000, "word": 0 } }, "balance": "0x01" },
"0000000000000000000000000000000000000008": { "precompiled": { "name": "alt_bn128_pairing_product" }, "balance": "0x01" },
"008a78302c6fe24cc74008c7bdae27b7243a7066" / <= Enter your account address here /: {
"balance" : "0x200000000000000000000000000000000000000000000000000000000000000"
}
Nils-Erik Frantzell
@halfalicious
@Pet3ris I looked at the Aleth --help output and it looks like the --test option is only supposed to disable mining and enable a test RPC interface so the behavior you're seeing is by design. If you'd like to pre-fund accounts I think doing so via a config json file is the way to go.
Joseph Nicholas R. Alcantara
@josephnicholas
Hello just want to revisit this task ethereum/aleth#5765 I am kinda new to the Aleth codebase and the task listed to add replay protection is kind of new to me can anybody shed some bit of light of what the task is really supposed to create? THanks
My first hunch was adding some chainId input parameter in TransactionBase but I am thinking that's not the case. :)
Nils-Erik Frantzell
@halfalicious
@josephnicholas It would be best to post this question in the issue and cc @gumb0 :grinning:
Andrei Maiboroda
@gumb0

@josephnicholas the end goal is for the mentioned RPC methods to generate transactions that have replay protection (that means they have chainID value encoded in v value of signature, as specified by EIP-155)

all the lower level transaction encoding logic already exists in the code, you need indeed to just add chainID parameter to TransactionBase and then pass the correct value there

Goober
@goober007_gitlab
QQ about ethereum, I want to develop a voting applicationb based on blockchain with very minimal functionalities for one of my course projects, I want to use C++ or Python or Java to complete it since I also need to have GUI. Can I use Ethereum to develop this ?
Joseph Nicholas R. Alcantara
@josephnicholas
@gumb0 thanks, just got back from a long vacation, will work on those when I get to some technology. :)
songminkyu
@songminkyu
hi guys~
Where can I find the C ++ web3 tutorial?
R P
@dv8S6660_twitter
Hey. When did Aleth become a thing and how is it related to the early early C++ client (I think there was one right?)?
I'm really really happy seeing a c++ client, just wondering where it crept up on me haha
PaweĊ‚ Bylica
@chfast
@dv8S6660_twitter It's continuation of cpp-ethereum project. But this is mostly in maintenance mode because of the limited resources. We are keeping it up to date in terms of Ethereum spec upgrades and fixing some other bugs. But in the end, it is still hard to use on Ethereum mainnet because of lacking features and optimizations in database / storage / network protocol.
R P
@dv8S6660_twitter
Ohh understood
Joseph Nicholas R. Alcantara
@josephnicholas
@gumb0 please kindly review on my first ever contrib. ethereum/aleth#5848