Techtalk

What is a preloaded blockchain?

While LiteBringer does not need any server at all, we have services to make gaming more pleasant.

If you have played LiteBringer you have most certainly noticed that the client is downloading a data package from time to time, called preloaded blockchain. That may look time-consuming but in reality, it saves you a lot of time. Here is the reason why.

Developing a game completely on a blockchain has one major problem: Every client has to know everything that is written in the blockchain up to now. But it takes very long to download the whole blockchain with all transactions and to compute the current game state. For instance, the Litecoin blockchain — on which LiteBringer is operating on — is about 34 GB. (2/25/20)

To shorten the waiting time before starting the game, we are offering two different services: The balance tracker and the preloaded blockchain. The preloaded blockchain is a bundle that contains all relevant data to download: the headers, relevant game transactions, and the precomputed game state.

Every client must have all relevant information about the game. If it wouldn’t be always up to date, it would not be possible to verify a trade offer for instance and therefore, it could happen that an offers sold twice.

Why can’t I start playing right after the download?

While the client is up to date after the download, it does not know your balance yet. So it has to search for every transaction related to your wallet.

Why does the client starts computing on the first block?

A block of the blockchain is connected to the previous block through its header. Theoretically, it is not mandatory to start from the beginning and we could start at a later state to reduce the waiting time even more.

It is only needed to compute the mined blocks since the creation of the used wallet, but we don’t know when that moment was. Theoretically, Charlie Lee, the creator of Litecoin, can join our game with his wallet that exists from the beginning.

In that case, the first few blocks would be relevant, too. Therefore, we decided to use a technically clean solution and are starting on the first block, the genesis block.

Why is the preloaded blockchain not downloaded at every login?

To save bandwidth and time of our users! We decided that we publish a package every 24-hours for now.

It depends on many factors if it is more time-efficient to compute the blocks on your own or to download the preloaded game state. If a slow connection is used to download the data package, it could be less time consuming for a user to compute the game process on his own.

For now, we guessed that a daily download is the easiest and fastest way, but we will evaluate it later and are able to adjust it anytime.

Who we are

LiteBringer is the first true blockchain game, giving you full control over your assets and enables you to earn real money through trading. It is developed by CipSoft an independent developer and operator of online games for various platforms. We are the maker of the MMORPG Tibia which ranks among Europe’s most successful online games since 1997.

Chat with us at Discord

Get the latest news on Twitter

Get the most valuable content with our Newsletter

LiteBringer is the first true Litecoin game. Join us on Discord and chat with us: https://discord.com/invite/u5zJgdd