Are all Blockchain array implementations incorrect?

Are all Blockchain array implementations incorrect?

I found many Blockchain implementations on the web, but are they true Blockchain that can scale?<a href="https://github.com/lhartikk/naivechain" target="_blank">Here</a>&nbsp;we can see that the blockchain is started as an array

I found many Blockchain implementations on the web, but are they true Blockchain that can scale?Here we can see that the blockchain is started as an array

var blockchain = [getGenesisBlock()];

Here we can see the same implementation:

constructor() {
        this.chain = [this.createGenesis()];
    }

This article also recommends it:

constructor(genesisNode) {
     this.chain = [this.createGenesisBlock()];

However, are any of these implementations ready to scale?

Technically, according to maerics,

the maximum length of an array according to the ECMA-262 5th Edition specification is bound by an unsigned 32-bit integer due to the ToUint32 abstract operation, so the longest possible array could have 232-1 = 4,294,967,295 = 4.29 billion elements.

The size is not a problem. Ethereum has used'only' 7 millions blocks, Bitcoin 'only' 500k, therefore there is enough space for the future. The real problem that I'm thinking is, how long would it take to read the last element of the array and would this be scalable? In blockchain, the 'Block' structure always needs to read the hash of the last block, therefore I assume that as it scales it takes longer and longer to do it.

What would Bitcoin and/or Ethereum do if their Blockchain array of Blocks doesn't have any more space to store blocks? Would the Blockchain just end there?

blockchain javascript bitcoin

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Adding Messages On The Bitcoin Blockchain - A How-To Guide

Can I write on a Bitcoin Blockchain? Can I drop down a message? Yes, Luca of course you can! You can leave a message on a Bitcoin blockchain using a particular op code, called OP_RETURN.

What Is The Difference Between Blockchain And Bitcoin?

Get hands on experinece on block chain live industry experts with real world example at Block chain online Training. Enroll for free demo

How to Create a Blockchain Chat App with Javascript - Blockchain for Beginner

From beginner to blockchain. In this webinar recap, you'll learn how Proof of Stake works and then will build a simple blockchain chat app in Javascript!

How to Build a Blockchain in JavaScript

For the purpose of this blog, let’s build a blockchain written in JavaScript. Hopefully, this doesn’t just serve as a simple code example but also gives a very basic understanding of how a blockchain actually works.

Building a blockchain with Javascript

Want to understand how blockchains and cryptocurrencies work under the hood? Just build a simple version yourself with Javascript and learn while doing!