Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    erchuan.ma
    @jiyilanzhou
    hello guys, I start geth with --syncmode light, receive no peers. this is normal phenomenon?
    Cristian Martín Redondo
    @kirhom
    @jiyilanzhou are you working on a private network?
    erchuan.ma
    @jiyilanzhou
    no, I am in mainnet
    erchuan.ma
    @jiyilanzhou
    i input admin.peers in console. no peers print。Learn about LES for the first time, don't know how to further learn
    liguoyu
    @lgy1027
    Could you tell me how mobile packages are used to accept RPC calls? Do you use gomobile to compile a.arr file?
    Cristian Martín Redondo
    @kirhom
    @jiyilanzhou I have worked on the rinkeby test net. Have you tried it? Maybe, you could try it in the test net to check if you have any configuration issues.
    erchuan.ma
    @jiyilanzhou
    After a week of reading, I finally finished all the message start to end. Is really too tired
    liguoyu
    @lgy1027
    Can anyone tell me how geth is installed on the phone, or how geth.aar is used, if it's better to use a document
    wimel
    @wimel
    Hi! Using a light client in the testnet (with geth --testnet --syncmode=light) doesn't sync well, the error it gives me is
    Synchronisation failed, dropping peer peer=ab04dbb7a5762182 err="retrieved ancestor is invalid".
    I tried to fix it by deleting the database
    geth --testnet removedb
    but didn't fix the error, I delete some past logs from the logs directory (like 15575#issuecomment-361375768) but it doesn't work either
    thanks in advance for the help.
    Info about the system:
    Geth version = 1.8.19-unstable
    O.S = Ubuntu 16.04.5 LTS
    Disk = SSD 250GB 
    RAM = 10GB
    CPU = Intel Core i5-3320m
    sonyshang
    @shangsony
    where is
    where is LES code
    light client code
    sonyshang
    @shangsony
    thank you
    austin89
    @austin89
    I'm trying to run LES on android and keep getting the "no suitable peers" issue which seems to be common. I've noticed that my discovery port is 0 and I know how to change this through the terminal by leaving out --nodiscover but I'm not sure how to make the change in my android application. Has anyone figured out how to get around this?
    erchuan.ma
    @jiyilanzhou
    Peer discover not stable.
    Rocky Fikki
    @rfikki
    If you are on the mainnet you can try these peers: https://gist.github.com/rfikki/e2a8c47f4460668557b1e3ec8bae9c11
    ToumiK
    @ToumiK
    Hi all,
    If i understood well the different types of the nodes (light and fast sync) are defined in oreder to be used with the public blockchain.
    Actually, i am trying to understand what may be the different possibilities in order to limit the ledger size for the consortium blockchain.
    In this smalll network, it will be hard to rely on full nodes
    If you have any suggestions or links let me know
    thank you in advance :)
    erchuan.ma
    @jiyilanzhou
    how can i calculate the size of state.due to block and state all store in leveldb.how can i recognize which is state size
    Jithin
    @jithinpaul
    Hi, I have been running a private blockchain for almost 4 months and while checking the blockchain size, I could see that the light node is taking around 2 GB and full node is taking around 2.2 GB. Is it normal? I was expecting the light node size to be significantly lesser
    z-akira
    @z-akira
    what is the Ethereum equivalent of bip37??
    Jithin
    @jithinpaul
    Does light node stores only headers? Once it is synced up, for the new blocks, is it storing state data as a part of validating transactions or any other data?
    Scott Bigelow
    @epheph
    2.2 GB is not the full node size; your full node might have warp-sync'd and is is currently back-filling, it should be >120GB
    Jithin
    @jithinpaul
    @epheph Its a private blockchain and my question was on the light node data size, For me it is taking same as that of full node. That should not be the case. right?
    Scott Bigelow
    @epheph
    matters how many transactions and state you have in your private blockchain; that is where the savings are realized
    miladdel
    @miladdel
    Olive IT
    @OliveIT
    Hi @epheph . I'm creating an android application that does sending and receving of erc20 tokens. Here I use geth light client for android from maven repository.
    org.ethereum:geth:1.8.2
    Olive IT
    @OliveIT
    The app is working fine using infura nodes on ropsten and mainnet.
    Problem is the app is quickly consuming internal storage. (app size is getting bigger)
    It seems it continuously downloads blockchain to synchronize.
    As you know this will take all storage space and no good of course.
    I followed this approach
    https://github.com/ethereum/go-ethereum/wiki/Mobile-Clients:-Libraries-and-Inproc-Ethereum-Nodes
    What did I do wrong? @epheph , @kirhom @ligi
    matrixbot
    @matrixbot
    ligi Olive IT (Gitter): what sizes do you see? Not sure if you do anything wrong - I also saw growing app size
    Nick Savers
    @nicksavers
    Where are the canonical specifications of LES/1 and LES/2?
    Nick Savers
    @nicksavers
    Super-Light Clients (Flyclient) https://eprint.iacr.org/2019/226
    JacksonBriggs
    @JacksonBriggs
    How is the trusted checkpoint generated? Ive been trying to find information but I think im looking in the wrong place maybe?
    Ammar Ashfaq
    @AmmarAshfaq
    Hi all how are u ? i have some issue regarding connecting private blockchain in my DApp application.I tried to connect with private blockchain when it is running in locally it is easity connected with my dapp but when i setup private blockchain in my ubuntu remote server they are not connected can any one help me i am stuck in this scenario in last two days. I have tried rpcadr=0.0.0.0 for global connection but is not connected
    J M Rossy
    @RossyWrote_twitter
    Heyo! I'm working on a mobile wallet that uses Geth in light client mode. I've noticed that when Geth initializes, it gets 'stuck' at the announcement stage for quite a while (20+ seconds) before it starts syncing headers. Has anyone else noticed this? Any tips for how to mitigate?
    Nick Savers
    @nicksavers
    @RossyWrote_twitter I might have more luck asking this question in the Geth Discord
    J M Rossy
    @RossyWrote_twitter
    @nicksavers Okay thanks for the tip!
    EA
    @ealymbaev

    Hi everybody,
    I am implementing a light client for Ethereum and I cannot find any way to call smart contract method via LES protocol. For example I need to call "balanceOf" for ERC20 token. RPC provides "eth_call" api for this and I can get balance of ERC20 token using it.

    LES protocol on the other hand does not provide any way to call smart contract methods.
    I was able to get balance of some ERC20 tokens by requesting storage value, but every ERC20 token has different storage key, and moreover, some ERC20 tokens even redirect to another contract when "balanceOf" method is called.

    Shortly, I need an alternative for "eth_call" RPC method for light client (LES protocol)

    Felix Lange
    @fjl
    @ealymbaev late reply: light clients usually execute the contract on the client side, fetching state on deman
    *demand
    In go-ethereum, we just use the EVM implementation and override all the state-related callbacks so they fetch data from the network instead of from the local disk
    EA
    @ealymbaev

    @fjl thank you for your reply. The idea is quite interesting and challenging.

    We are developing iOS and Android light clients for Ethereum network, and use swift and kotlin accordingly. Are there any implementations of EVM on these languages?

    And on more point. Am I right that in order to call some contract I need to:

    1. download contract code by its address
    2. execute it on local EVM implementation (providing storage values from network/peers)
    3. if contract calls another contract in its code - steps 1 and 2 should be repeated recursively.
    Felix Lange
    @fjl
    Yes, that's how to do this.
    I think there is a Java implementation but not sure if it supports light client functionality.
    Dominic Letz
    @dominicletz
    For light clients and maybe more so for super light clients which don't have the state local a get_proof() RPC call will be needed for these use cases.
    There is some work being done here: ethereum/EIPs#1186
    Sebastian Sicardi
    @smcsicardi
    Hi Guys! Im working to understand the underlying workflow of the geth light client and have a question. Do any of you know where can I find stats about light client usage? Like how many ethereum light clients are there, or Ultra light clients for example
    Nick Savers
    @nicksavers
    @smcsicardi My node is currently serving 176 light clients. But I'm not aware how many Light Serving nodes are out there.
    Sebastian Sicardi
    @smcsicardi
    Well that's a good start