{"id":299,"date":"2021-01-14T08:40:10","date_gmt":"2021-01-14T08:40:10","guid":{"rendered":"https:\/\/www.litebringer.com\/blog\/?p=299"},"modified":"2021-04-28T08:40:32","modified_gmt":"2021-04-28T08:40:32","slug":"what-is-a-preloaded-blockchain","status":"publish","type":"post","link":"https:\/\/www.litebringer.com\/blog\/techtalk\/what-is-a-preloaded-blockchain","title":{"rendered":"What is a preloaded blockchain?"},"content":{"rendered":"\n
While LiteBringer does not need any server at all, we have services to make gaming more pleasant. Here is the reason why you really want to use it.<\/p>\n\n\n\n\n\n\n\n
If you have played LiteBringer you have most certainly noticed that the client is downloading a data package from time to time. We call it preloaded blockchain. That may look time-consuming but in reality, it saves you a lot of time. Here is the reason why.<\/p>\n\n\n\n
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 \u2014 on which LiteBringer is operating on \u2014 is about 34 GB. (2\/25\/20)<\/p>\n\n\n\n
To shorten the waiting time before starting the game, we are offering two different services. We call them balance tracker<\/a> and preloaded blockchain<\/a>. The preloaded blockchain is a bundle that contains all relevant data to download. It includes the headers, relevant game transactions, and the precomputed game state.<\/p>\n\n\n\n Every client must have all relevant information about the game. If it wouldn\u2019t 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.<\/p>\n\n\n\n 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.<\/p>\n\n\n\n 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.<\/p>\n\n\n\nWhy can\u2019t I start playing right after the download?<\/h2>\n\n\n\n
Why does the client starts computing on the first block?<\/h2>\n\n\n\n