Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Move Blockchain data to user independent directory

    Technical Development
    5
    11
    3127
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Wellenreiter
      Wellenreiter Moderators last edited by

      I thought about the problem, that first time syncs takes a very long time and new users become impatient waiting for the sync to complete.

      Besides other possible solutions there is one option to install the block chain related data to a system as part of the installation process for pre-compiled packages for linux and windows.

      The advantage is, that the data could be downloaded in a compressed format. The compression factor will be very low, as most of the data is hashed and can’t be compressed.

      The current blockchain is about 600 MB compressed as zip. On a 1 Mbit line it should take about 80 minutes to download this.

      My suggestion is to store the blockchain under /var/opt/feathercoin/… for Linux and under %appdata%\feathercoin for windows.

      At start the client should perform following tasks:

      1. check if blocks directory is available under ~user/.feathercoin/blocks (linux)
        %userdata% \??? (windows)
      2. if no to 1.
      • check if blockchain data is available under /var/opt/feathercoin (%appdata%)
      • if yes
        • link /var/opt/feathercoin/blocks to ~user/.feathercoin/blocks (linux)
        • link %appdata%\feathercoin\blocks to %userdata%\feathercoin\blocks
      • if no
        • download blockchain and store as done today

      Commments?

      Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
      Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

      1 Reply Last reply Reply Quote 0
      • kris_davison
        kris_davison last edited by

        I like it but where would you host the files?

        1 Reply Last reply Reply Quote 0
        • MrWyrm
          MrWyrm administrators last edited by

          I’d like to move folders anyway, blockchains are getting too fat for my SSD. I’m going to have to start doing symbolic links.

          Like what I do: 6uuy6isbrW1SBF191Bzgui1gWxPdNKx2PB

          1 Reply Last reply Reply Quote 0
          • wrapper
            wrapper Moderators last edited by

            I like the idea, but it might need a subsequent extra check, once synced. Or as part of the installation. This would be to ensure the “download” was the official version.

            Maybe, the sync still has to connect to the the normal network, but the “download” is treated as another “peer”.

            Re: Downloads.

            A need for bandwidth to provide users with wallet binaries, pre-compiled neoscrypt miners and wallets has been identified, which has had some preliminary discussion / work by staff. But, this could be addressed as a generic issue with the “official” historical blockchain download being the first development.

            1 Reply Last reply Reply Quote 0
            • Wellenreiter
              Wellenreiter Moderators last edited by

              I like it but where would you host the files?

              For linux on the repository servers that host the .rpm or .deb package.

              This is at opensuse.org at the moment, because I use the opensuse build service to compile and package for several distributions.

              All packages are signed with my private key at opensuse.

              For windows I don’t know, as the distribution mechanism is different

              Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
              Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

              1 Reply Last reply Reply Quote 0
              • Wellenreiter
                Wellenreiter Moderators last edited by

                I like the idea, but it might need a subsequent extra check, once synced. Or as part of the installation. This would be to ensure the “download” was

                Re: Downloads.

                A need for bandwidth to provide users with wallet binaries, pre-compiled neoscrypt miners and wallets has been identified, which has had some preliminary discussion / work by staff. But, this could be addressed as a generic issue with the “official” historical blockchain download being the first development.

                As the repository server would carry the traffic, this would not use bandwidth of the feathercoin server, unless we need to host the windows versions there

                Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
                Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

                1 Reply Last reply Reply Quote 0
                • wrapper
                  wrapper Moderators last edited by

                  Ahh, I see what your saying now.

                  I was thinking that we didn’t need to overblow the download from Github, as most times (after the initial download) you are upgrading. So, would have the blockchain.

                  Also, although Github don’t do “binary” downloads you are thinking we could still use them. We would need to check that is within the rules.

                  I also remember now that Chinacoin had a download blockchain (from Github), up to a checkpoint. Although you just unzipped that to seed the directory.

                  Also, when I re read the thread header, it made me think you meant keeping the compressed version, and only downloading further from there, which I didn’t quite get on first read. ie the browser can look in multiple locations for the blockchain.

                  I haven’t got an SSD yet, but my son has. They are expensive but fast hard disks, so are usually more limited in storage space than a mechanical drive.

                  I can see both, the compressed blockchain, and being able to split it the blockchain would be a big advantage. That sounds like a very interesting novel idea, and an achievable / useful development goal.

                  1 Reply Last reply Reply Quote 0
                  • Wellenreiter
                    Wellenreiter Moderators last edited by

                    In principle the blockchain is already cut into pieces on your hard disk.

                    There is a parameter to define the largest size of a file storing the blocks. The default limit is 100MB and if that is reached a new file is opened.

                    on my harddrive the .feathercoin/blocks directory looks like this:

                    blk00004.dat
                    blk00005.dat
                    blk00006.dat
                    blk00007.dat
                    blk00008.dat
                    index    # a subdirectory
                    rev00004.dat
                    rev00005.dat
                    rev00006.dat
                    rev00007.dat
                    rev00008.dat
                    

                    Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
                    Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

                    1 Reply Last reply Reply Quote 0
                    • MrWyrm
                      MrWyrm administrators last edited by

                      I’ve sorted my problem.using the flag

                      -datadir={driverletter}:\{folder}
                      

                      Like what I do: 6uuy6isbrW1SBF191Bzgui1gWxPdNKx2PB

                      1 Reply Last reply Reply Quote 0
                      • T
                        tmuir12 Regular Member last edited by

                        Can we use torr?

                        I need to look into it more, but I’m sure I could set up a torr client on a PI to helps seed the file, would need to find a way to limit the download though so I don’t eat up all my bandwidth, if enough of us did that it would help share the load and could work

                        1 Reply Last reply Reply Quote 0
                        • Wellenreiter
                          Wellenreiter Moderators last edited by

                          Of course a torrent could be used after we move to a standard directory, so that no user intervention like move or copy is needed to get the blocks to the right location on the disk.

                          Feathercoin development donation address: 6p8u3wtct7uxRGmvWr2xvPxqRzbpbcd82A
                          Openpgp key: 0x385C34E77F0D74D7 (at keyserver.ubuntu.com)/fingerprint: C7B4 E9EA 17E1 3D12 07AB 1FDB 385C 34E7 7F0D 74D7

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post