Coder Social home page Coder Social logo

Comments (7)

dmytro-samoylenko avatar dmytro-samoylenko commented on June 28, 2024 1

Hello,

On the first start the wallet receives last block from fullnode server and scans blockchain starting from received block number.

You may replace block number in the db using mentioned command, make sure you stop tron-shkeeper before adjusting the block by running kubectl -n shkeeper scale --replicas=0 deploy tron-shkeeper and then start it again with kubectl -n shkeeper scale --replicas=1 deploy tron-shkeeper.

from shkeeper.io.

dmytro-samoylenko avatar dmytro-samoylenko commented on June 28, 2024

Hello,

Actually you already can use a Lite Fullnode snapshot (e.g. from http://47.89.178.46/backup20230503/) with tron fullnode that is deployed by Shkeeper chart (starting from chart version 1.2.36 and java-tron image version GreatVoyage-v4.7.1.1).

Please let me know if you need a detailed description how to run Lite Fullnode instead of regular Fullnode.

from shkeeper.io.

bulhiCzar avatar bulhiCzar commented on June 28, 2024

Yes, if you don't mind
I would like to get information on how to configure values.yaml for Lite FullТode for TRON and ETH

I tried to set it up myself but failed

from shkeeper.io.

dmytro-samoylenko avatar dmytro-samoylenko commented on June 28, 2024

If you have Tron fullnode or light fullnode outside of cluster you need:

tron_fullnode:
  url: http://<external-fullnode-hostname>

If you want to have lite fullnode in cluster, you start with:

tron_fullnode:
  enabled: true

Download latest lite fullnode snapshot from http://47.89.178.46/:

wget http://47.89.178.46/backup20230503/LiteFullNode_output-directory.tgz

Unpack it:

tar xzvf LiteFullNode_output-directory.tgz

Stop java-tron:

$ kubectl -n shkeeper scale --replicas=0 deploy java-tron

Delete all blockchain data:

rm -r /var/lib/rancher/k3s/storage/pvc-<......>_shkeeper_output-directory/*

Copy blockchain database from archive to pvc:

cp -r output-directory/database /var/lib/rancher/k3s/storage/pvc-<......>_shkeeper_output-directory/

Start java-tron:

$ kubectl -n shkeeper scale --replicas=1 deploy java-tron

I haven't found a way to use Ethereum fullnode in prune/lite mode. Looks like lite node is broken after the Merge and prune mode is not implemented yet.

from shkeeper.io.

bulhiCzar avatar bulhiCzar commented on June 28, 2024

thanks, it works!
I did everything as you indicated. even the transactions that I made this week have already been displayed. but the wallet is still in the process of syncing and constantly downloads something over the network

is this normal, will it continue like this?
Sync In Progress (51028546 blocks behind)
it seems to me that this is not normal, because I have specified a remote node that is already synchronized

it is not at all clear why he writes that (51028546 blocks behind) when the current block is 50882219
why is there such a large number of blocks. when are there fewer blocks in total?

from shkeeper.io.

dmytro-samoylenko avatar dmytro-samoylenko commented on June 28, 2024

Hi,

Perhaps tron wallet last seen block was set to 0 and now it catches up. You may check it with:

# sqlite3 /var/lib/rancher/k3s/storage/pvc-65d64be9-b08f-4815-9afa-a02efdcc6ab9_shkeeper_tron-shkeeper-data/database.db 'select * from settings'
last_seen_block_num|50893163

If it is too far in the past you may adjust it by running:

# sqlite3 /var/lib/rancher/k3s/storage/pvc-65d64be9-b08f-4815-9afa-a02efdcc6ab9_shkeeper_tron-shkeeper-data/database.db 'update settings set value="50893163" where name="last_seen_block_num"'

50893163 is a latest block seen by my wallet.

from shkeeper.io.

bulhiCzar avatar bulhiCzar commented on June 28, 2024

I got this result

last_seen_block_num|94361
current_server_id|0

this means that now the wallet is located on 94361 blocks, which was many years ago. even though I downloaded LiteFullNode and it didn't apply automatically?

I need to install the right block from which I want to start syncing. and it will start syncing exactly from the block that I specify?

I'm sorry that I ask so many questions, I just want to make sure of my actions

from shkeeper.io.

Related Issues (20)

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.