Monero is striving to be a currency that everyone can use, the growth of the blockchain is starting to hamper this goal IMO.

I think we should consider dropping blocks off of the chain tail once we reach block height of 4000000. This will give us 10 years of storage capacity, more than enough IMO.

Similar to how you have to exchange bills of cash once they get worn, you would simply churn your coins to get your outputs into younger blocks.

We are trying to be digital cash not an inheritance vault. If we had this feature from the start 99% of the community would agree with it.

Please consider this.🙂

*Edit: @4KB/tx * 100,000tx/day we are looking at ~400MB chain growth daily, this is not sustainable, let’s take care of this now before it becomes a big problem

**Edit: A possible solution could be that nodes would have the option to set chain retention duration. So when syncing a new node you can select that you would like to retain 5 years of chain data, with a minimum boundary enforced that retains sufficient security. This way the network decides in a fair way how much chain data is useful to store.

  • silverpill@mitra.social
    link
    fedilink
    arrow-up
    10
    ·
    4 months ago

    @tusker @monero Chain growth is a real problem that is often dismissed because storage prices are falling. This makes sense when you’re small and there is not much activity, but that could change in the future.

    However, I don’t think you can simply drop old blocks without burning someone’s savings? One probably should look into what Ethereum people are doing with their state expiry proposals.

    • teknomunk@apogee.polaris-1.work
      link
      fedilink
      arrow-up
      3
      arrow-down
      1
      ·
      4 months ago

      @silverpill @monero @tusker

      If you were to take old transactions and roll them over to new genesis transactions at the same address but without a need to validate a history, I think you could safely drop the history of those coins without any affect to the end users. Probably would need to have the new genesis transactions on the chain for a few hundred or thousand blocks before the history was dropped to prevent malicious actors from forcing history to be dropped early.

    • tusker@monero.townOP
      link
      fedilink
      arrow-up
      1
      arrow-down
      2
      ·
      edit-2
      4 months ago

      I don’t think you can simply drop old blocks without burning someone’s savings?

      No, but Monero is not a savings account, it is a currency, using it to store coins for over a decade is detrimental to those trying to use it for transactions by forcing everyone to keep old data around.

      Wallets can simply notify users telling them to churn their coins into fresh blocks. Small inconvenience that will greatly benefit new users and those who use Monero everyday.

      We would see 10 times the nodes on the network if the chain was only a few GB’s and not growing, because just about anyone could run one.

      • oldfart@lemm.ee
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        4 months ago

        So just like CDBC with expiration date from conspiracy theories?

        • tusker@monero.townOP
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          4 months ago

          So just like CDBC with expiration date from conspiracy theories?

          Never heard of it. There is something called CBDC though and it has been publicly announced by war criminals and theives with having expiration dates, no theory needed.

          If I could roll over CBDC to a new account before it expired by the click of a button I would have no issue with it expiring.

  • XMR_loving_AnCap@monero.town
    cake
    link
    fedilink
    arrow-up
    7
    ·
    4 months ago

    I agree blockchain growth could become a problem someday. I think it’s not right now and it probably won’t be in the next few years (as @monerobull already pointed out).

    I’d recommend watching this monero talk episode, because near the end Luke Parker (kayabaNerve) talks about what’s next for monero after seraphis/jamtis. And to me it sounded like there is a solution for the blockchain growth problem in there (nova or what it’s called?). https://www.youtube.com/watch?v=GhNljgiQKp8

    I think for now full chain membership proofs are one of the most important things for us (i.e. fixing the weakest link in the system aka ring signatures). After that we’re mostly set on privacy and focus on other things like blockchain growth/accessability etc. (which seraphis/jamtis also tackles).

    About the currency and store of value topic: In the literature it’s often said money or a currency has three functions -> store of value, transfer of funds and unit of accounting. Thorsten Polleit argued in one of his latest books that these three functions actually can be condensed into a single one -> transfer of value. Store of value is just a transfer of funds through time. And unit of accounting is just that a business wants to pick the most liquid exchangeable good which circles back to transfering funds effectively and efficiently.

    If you’re now saying monero should be aiming for becoming the best currency, but not a store of value, you limit it’s capability as a currency as transfering value (through time) is the fundamental function of a currency.

    So we need to find a technical solution to that problem without compromising on the currency aspect.

    So to wrap up, I appreciate your input as I agree, we need to always keep the shortcomings of monero in mind and work on improving them. I think the discussion around and permanent reevaluation of monero is one of the things that made it what it is today and if we can keep the spirit going it’s what it’ll make it successful in the future too :)

    • tusker@monero.townOP
      link
      fedilink
      arrow-up
      5
      ·
      4 months ago

      What a great comment.

      I am not saying Monero should not be used to store coins long term and my suggestion only adds a small inconvenience by requiring a churn once in a long while.

      I hope you are correct about the future developments which will finally bring a solution to the eternal chain growth problem and I am glad these types of conversations are still allowed in Monero. 🙂

  • ƊƲƘЄƬӇƠƦƖƠƝ@lemmy.one
    link
    fedilink
    arrow-up
    5
    ·
    4 months ago

    I disagree with the idea that one commenter opined: “Monero is not a savings account”.

    Who are you to tell me what to do with my XMR?

    That being said, I am not opposed to the idea of implementing some kind of condensing/snapshot that some have outlined here.

    The question I’d ask is if it would ever be possible for someone to use that data maliciously?

    • tusker@monero.townOP
      link
      fedilink
      arrow-up
      2
      ·
      4 months ago

      People can use Monero how ever they wish, but rules should be in place to prevent their use from negatively affecting the network.

      If we have a giant spam attack and someone adds 100GB to the chain in a week there should be a mechanism in place to drop this data eventually.

      Since there is no way to determine good data from “bad” we have to just drop all data that is aged.

      • Sethayy@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        4 months ago

        Though this setup could probably be abused if funds were illegitimately taken and then ddos the network as a coverup, so all logs of it were deleted

  • g2devi@feddit.nl
    link
    fedilink
    arrow-up
    2
    ·
    4 months ago

    Agreed but that’s the wrong approach. You cannot just drop old blocks since old wallets would lose their money. A better approach would be to have wallets specify a 'preserve records for N months ’ feature. The larger the number of months, the higher transaction fees are so people are incentivized to use a small number… A small number would also help with privacy since if the view key is ever leaked or quantum computing ever takes off, old your old records would not be leaked. Once N months passes. Old transactions are replaced by a single forwarding transaction with the total amount in the account.

    • g2devi@feddit.nl
      link
      fedilink
      arrow-up
      3
      ·
      4 months ago

      Note that when you first deposit money into a wallet, you would prepay the cleanup fee and you would pay the cleanup fee on any transaction made after the N months. This would ensure that only N months of records are present. And if you do not touch you account for 20 years, no problem. You still have all your money and you only have N months of payments

  • trymeout@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 months ago

    I think all cryptocurrency blockchains that function as money or store of value should do this. However I think 1 years worth is better than 10 years worth of data, or perhaps even less than a years worth of data.

    As long as the blockchain size remains small enough for the adverage Joe to store the entire chain onto their mining computer for when or if Monero reaches mainstream mass adoption usage. By mainstream mass adoption I mean Monero is used as much as Visa or Mastcard is globally which I would assume will mean that Monero will need to handle 1 million transactions per second.

    • tusker@monero.townOP
      link
      fedilink
      arrow-up
      2
      ·
      4 months ago

      Best of all worlds is if those running nodes can select how much they want to store on their node, then the network as a whole would decide and your vote is running a node with that setting.

      • trymeout@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        4 months ago

        Not a bad idea as long all nodes will allow any wallet to recover all funds, not all transaction history, just balance.

        • MalMen@masto.pt
          link
          fedilink
          arrow-up
          1
          ·
          4 months ago

          @trymeout @tusker In Monero there is no such thing of recovering all funds without transaction history… Monero is not like bitcoin where you can see what transactions where spend already and you can discart them… in Monero (with some exceptions) you cant tell if a transaction has been spent or not, so nodes can never delete them, otherwise they will not know theyr existence if someone try to spend that outputs

    • tusker@monero.townOP
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      I think the best option would be if node operators can decide how much they want to store with some safe minimum imposed of say 1 year.

      • I think every node needs the same dataset for the blockchain to be valid.

        Maybe a rolling dataset, with the earliest transactions falling off after their data is somehow archived (but accessible to the current nodes)?

        OR

        The current nodes could do a hardfork (NewNodes), with the ability to reference the legacy chain snapshot for the next X years.

        Wallet1 created in 2015. Contains 1 XMR. Hardfork in 2025 to truncate the entire DB which becomes a balance reference copy. After the snapshot, they would have a balance on the “new” chain. In order to transact, they’d have to use a New Node which knows their previous balance from the legacy chain.

        Is that possible?

        • tusker@monero.townOP
          link
          fedilink
          arrow-up
          2
          ·
          4 months ago

          I don’t think so. Since the data is all encrypted you need to have all the data to validate if someone had a balance. Unless someone invented a type of proof where you can create a transaction from the old chain and the network would be able to validate it even though the network no longer has that data or maybe some small part of the old data could be saved to allow for this.

  • pedroapero@lemmy.ml
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    3 months ago

    Hi, indeed this is not possible with Monero for various reasons (coinbase verification; can’t identify spent TX outputs). In case you don’t know, the Mina cryptocurrency has solved this blockchain storage issue. A fixed-size (<30KB) cryptographic proof is enough to validate the entirety of the current state (the latest block).

    It requires a network of proof generators with incentives in addition to the block producers. Scalability is not great (similar to BTC) and does not provide anonymity (not a priority either). Checking the state is computationally intensive too (not suitable for smartphones; requires around 10GB of RAM).
    It is improving on relatively new cryptography techniques (ZKSnarks), likely to evolve (less stable protocol than BTC; security not battle-tested).

    • tusker@monero.townOP
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      This is pretty exciting. I hope as this kind of technology develops we can integrate it into Monero. It would be great to not have to worry about spam attacks bloating the chain and making it more difficult for everyone to use Monero.

  • MalMen@masto.pt
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    @tusker I dont think this makes sense in any layer 1… you should be able to store your value for an undefined period of time and not have to worry about it expirity date…

    • tusker@monero.townOP
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      I think it would be great if you can run your own node with full chain history and still be compatible with the network which may have a shorter chain.

      That way you can store your coins in the first block as long as you are willing to spend for the storage. Once you run out of storage you can just send the coins to yourself and drop 200GB off the chain on your node. 👍

      • MalMen@masto.pt
        link
        fedilink
        arrow-up
        1
        ·
        4 months ago

        @tusker what you are sugesting is that we can have a pruned blockchain (that already exist by the way), but in order to validate the transactions the miners nodes would have to have the full history (like we have already) is that it or I am missing anything ?

        • tusker@monero.townOP
          link
          fedilink
          arrow-up
          1
          ·
          edit-2
          4 months ago

          We would need a new proving mechanism to handle it, where the node with the full chain can generate a verifiable proof against some known constant that is able to be validated by the network without the network having the actual block. “Voodoo proof.”

          Otherwise we can just let node operators set their desired chain retention and you can click a button every 10 years to not lose your funds. Until a better solution is found,…while solving chain storage issues forever.

  • moneroshil@monero.town
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    This is what fees are for. Just raise them so the spam transactions aren’t viable. People want to write to the blockchain? They need to pay to do it.

  • rattie_ok@monero.town
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    4 months ago

    Yes. Radical ideas are the best.

    Some might say that disk space is cheap, but what if Monero comes back to $1? Will you waste 500GB of disk space to keep your $50 safe?

    • tusker@monero.townOP
      link
      fedilink
      arrow-up
      4
      ·
      4 months ago

      The reality is 99% of people will not go out an buy an extra disk just to store chain data, they will just use a remote node or stop using Monero.

      I am very much into Monero and would be hesitant to attach extra disk to store the chain.

  • Mario@liberdon.com
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    4 months ago

    @tusker This should be a good idea. Also users who keep their funds as a mean of wealth storage can just move their funds into a new wallet every 10 years.

    This would also help with eliminating the lost coins of wallets whose recovery keys have been lost. It would increase the value of the coin continuously.

    • tusker@monero.townOP
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      4 months ago

      Yes, and they would not even need to move it to a new wallet, they can just send the balance to themselves in their existing wallet and it would be sitting in the latest block. Ready for another 10 years of storage.

      This difficult but vital decision should have definitely been made right from the start, as it is blatantly obvious they we cannot store all data forever. Then as tech improved it could be adjusted to 20 years in the future.

    • monerobull@monero.town
      link
      fedilink
      arrow-up
      6
      ·
      4 months ago

      Agreed. Currently we are at ~190 GB with ~8.5 GB growth over the last 3 months. This is just 34 GB per year and a 500 GB SSD would last another 7 years at the current growth-rate. You can already get 2 TB SSDs for less than 150€. Storage really isn’t the issue, the biggest limitation is bandwidth.

      • tusker@monero.townOP
        link
        fedilink
        arrow-up
        3
        ·
        4 months ago

        Recently we saw transactions spike to 100k per day, that is ~400MB per day, 146GB per year of data.

        If this tx volume were to be sustained it already makes the chain growth concerning and adoption is just starting.

        • monerobull@monero.town
          link
          fedilink
          arrow-up
          1
          ·
          4 months ago

          I don’t actually think 150GB per year is an issue. This still gives you +5 years on a 1TB SSD. That’s half a decade of time, Monero is only 10 years old. Plenty of time for storage to advance.

          • Mario@liberdon.com
            link
            fedilink
            arrow-up
            1
            ·
            4 months ago

            @monerobull @tusker is not only an issue, it is awful. Some people barely afford a storage drive of half a TB. Many nodes are actually ran on raspberry PIs.

            And that 150gb is growing exponentially according to adoption. We could easily exceed 2TB every 10years.

            Now, someone has to wait hours to sync the block chain already.

            • monerobull@monero.town
              link
              fedilink
              arrow-up
              1
              ·
              4 months ago

              So what? It takes 3 days to sync an ETH node, 10 days for a chia node. These aren’t lightwallets, this is network infrastructure.

              Many nodes are actually ran on raspberry PIs.

              I very much doubt that considering how raspberries don’t have physical AES and already took +3 weeks to sync before the transaction spike.

              We could easily exceed 2TB every 10years.

              I’d be perfectly fine with that. Right now you can get 2 TB SSDs for about 1 XMR. At the current rate (and it’s been similar for decades) they will be worth less than 20$ in a couple of years. Monero turns 10 this April and we are currently at only ~200 GB. And we still have pruning!

              Storage isn’t the limiting factor, it’s bandwidth.

              • tusker@monero.townOP
                link
                fedilink
                arrow-up
                1
                ·
                4 months ago

                The size of the chain also affects bandwidth. Many people have bandwidth caps so trying to sync 200GB could take 3+ months.

                I hope we can at least have a higher pruning factor where the chain could be cut down to at least 1/10th the size as the amount of nodes continues to grow there would still be more than enough copies of the chain out there.