Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    spidemen
    @spidemen
    @jeprince
    Zack
    @altereddude_twitter
    HI guys, is there a comprehensive guide to understand the classes in the repo?
    Michael Sun
    @shydesky
    there is some description of Tron, you can learn it before reading the source code https://tronprotocol.github.io/documentation-en/introduction/
    you can ask for help here when you have any question about the source code.
    Zack
    @altereddude_twitter
    Alright thanks :)
    Zack
    @altereddude_twitter
    For those interested or newbies like me, just found a step by step set up https://www.reddit.com/r/Tronix/comments/7rq32t/walkthrough_javatron_implementation_stepbystep/
    Michael Sun
    @shydesky
    this tutorial is outdated,i think.
    Zack
    @altereddude_twitter
    Yes Ive read some Kafka stuff, doesnt seem relevant
    Michael Sun
    @shydesky
    yes
    If you want to learn the source code deeply, I advise you to start from the network node discovery, block synchronization, and then transaction handle, block produce and handle, DPoS consensus.
    datastore is also a key point, I think
    Zack
    @altereddude_twitter
    @shydesky duly noted, gonna have a look every day for sure thanks
    Zack
    @altereddude_twitter
    Hey guys, am facing this error when I run a full node locally evrytime,
    'manager': Invocation of init method failed; nested exception is java.lang.RuntimeException: Can't initialize database
    IO error: lock /media/zakaria/2TB/ideaprojects/blockchain/tron/java-tron/deploy/output-directory/database1/tmp/LOCK: already held by process
    Does anybody know about this error?
    Zack
    @altereddude_twitter
    AH I see I changed dbVersion from 1 to 2 and it worked
    Michael Sun
    @shydesky
    @altereddude_twitter the database is limited in just one process reading and writing.
    @altereddude_twitter yeah, the dbVersion2 is recommended to use.
    Zack
    @altereddude_twitter
    @shydesky Yeah but I actually launched one node, werid I faced this issue anyway but thx mate :)
    optate823
    @optate823
    @altereddude_twitter Bro. it means it starts when the system starts. so check which process is using said method: kill process or wait. search xda for kill process.
    Ayush
    @AyushKaul
    Hello, Is there an updated tutorial to deploy full node on Linux?
    Arber Avdullahu
    @arberiii
    is it possible to get the raw data of block header of Tron from an api?
    optate823
    @optate823
    Rogue-dev \Mneumonics/ Elliptical JS-Block-chain Curves Require http://Neuralz.xyz Get in.
    Arber Avdullahu
    @arberiii
    does tron have something similar to this https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_getproof
    Michael Sun
    @shydesky
    @arberiii no
    Arber Avdullahu
    @arberiii
    @shydesky thanks!
    livingrock7
    @livingrock7
    Hi, can anyone please tell me maven dependency to use org.tron
    cathy-lishipu
    @cathy-lishipu
    livingrock7
    @livingrock7
    Thank you @cathy-lishipu
    Arber Avdullahu
    @arberiii
    Is there any documentation on how Merkle Trees are built in Tron?
    jason.jiang
    @jiangyy0824

    Hello @arberiii,

    The Merkle tree used in shielded transaction is a 32 layers Merkle tree:
    MerkleCRH(layer, left, right) = PedersenHash(“Zcash_PH”, l || left || right)
    Where l = I2LEBSP6 (31− layer)
    See protocol document 3.3.4 for PedersenHash and protocol document 3.1 for I2LEBSP6
    Empty leaf node is "0100000000000000000000000000000000000000000000000000000000000000000000"

    https://www.tronz.io/Shielded%20Transaction%20Protocol.pdf

    and please join our telegram channel for further questions:
    https://t.me/troncoredevscommunity
    livingrock7
    @livingrock7
    Is there a sample repo how to use grpc in java instead of http api for exchange operations with running FullNode? Any help would be appreciated
    optate823
    @optate823
    A wise man once said:
    "Double Down TRX"
    cathy-lishipu
    @cathy-lishipu
    @livingrock7 wallet-cli is the sample repo. not outdated
    optate823
    @optate823
    .git it .git gz trx --y 1001854 is js mainnet dev + blockchain "We love you Cli~" sincerly : Everything .Java
    livingrock7
    @livingrock7
    @cathy-lishipu Hi all,
    to get information from local fullnode using grpc
    anyone get NoMethodFound error?
    jason.jiang
    @jiangyy0824
    @livingrock7 Please provide more detailed error logs.
    livingrock7
    @livingrock7
    @jiangyy0824
    There was an issue with newer netty version I am able to connect to grpc service exposed by my local fullnode.
    Any example how to convert protobuf block object into pojo / json?
    running-tomato
    @guoquanwu

    you can refer this: https://stackoverflow.com/questions/28545401/java-json-protobuf-back-conversion

    Simply do:
    JsonFormat.printToString(protoMessage)

    @livingrock7
    livingrock7
    @livingrock7
    @guoquanwu Thank you i will try that. What I am looking for is how to convert bytestring from transaction's raw data's contract info to TransferContract message. Can anyone help?
    livingrock7
    @livingrock7
    How do I get the message from bytestring first (GrpcCallresponse) , then I can convert it to Json.