scrobble.life
Blockchain Wizardry

Hive Mirrornet (a.k.a. Fakenet) is up and running!

Long story short: Public Hive Mirrornet seed instance is up and running.

p2p-seed-node = seed.fake.openhive.network:2001 --chain-id 42

https://gtg.openhive.network/get/testnet/mirror/

That’s pretty much all you need to start playing with the mirror. Have fun.

If you don’t understand the above, don’t worry, now I’ll try to explain what is all about.

https://www.youtube.com/watch?v=vOV2srXzNW4 - Of course, such post is a good excuse to publish yet another Hive logo reveal

Nothing is true on the mirror net

It might look the same, it might feel the same, but it’s fake. The only purpose of its existence is research and development of the Hive ecosystem. We will break it, shatter it, and re-create it over and over again. Of course you are very welcome to join and play in this large scale sandbox, but …

YOU HAVE TO BE CAREFUL WITH THE MIRROR

The most important thing is to remember that everything you see in the mirror is fake. Assets are not real and they have no value. Accounts are fake and you shouldn’t assume that @gandalf in the mirror is the same @gandalf on the Hive. Your actions on the Hive can affect the mirror, but things you do in the mirror can’t affect the Hive. You can do crazy things with your mirror account without a fear of breaking something in the real world, but that’s true as long as you can distinguish the mirror from reality. Also make sure that tools that you are using for chain interaction can tell such a difference.

It’s not that easy to make such a mistake because while the private keys on both networks might be the same and many transactions are the same, there are different chain IDs and resulting hashes, so the TaPoS keeps us from replay attacks, etc. Given that, it requires some extra effort to shoot ourselves in the foot, but…

”Two things are infinite, the universe and human stupidity, and I am not yet completely sure about the universe.”

Well, just be careful please. :-)

Testnet vs Mirrornet

Testnet

  • Easy and quick to set up
  • Low resource requirements:
    • Seed node or witness node takes 2GB for block log and 5GB for shared memory file.
    • API node takes extra 3GB for account history storage
    • Hivemind’s database takes 2GB
  • Bootstrap process creates accounts based on mainnet
  • Tool called tinman-gatling can port live transactions from mainnet to testnet to mimic activity
  • A lot of mimicked transactions are going to fail because of huge difference with the mainnet
  • TESTS and TBD as native assets

Mirrornet

  • Way more time consuming to set up, less tools currently
  • High resource requirements (similar to the mainnet):
    • Seed node or witness node takes 500GB for block log and 16GB for shared memory file.
    • API node takes extra 750GB for account history storage
    • Hivemind’s database takes 650GB
  • Initial “conversion” turns mainnet blocks to mirror (i.e. accounts, balances, transactions)
  • Node based converter ports live transactions from mainnet to mirrornet to mimic activity
  • Some of mimicked transactions are going to fail because of small difference with the mainnet
  • HIVE and HBD as native assets (but of course fake)

Recipe for Copy&Paste Experts

# Go to a directory where you want to set up your node
# Create subdirs
mkdir -pv mirror-consensus/blockchain mirror-consensus/snapshot
# Get the block_log
wget https://gtg.openhive.network/get/testnet/mirror/block_log -O mirror-consensus/blockchain/block_log
# Get the snapshot (unpack on the fly)
wget https://gtg.openhive.network/get/testnet/mirror/mirror-consensus-bootstrap.tar.bz2 -O - | tar -xjvC mirror-consensus/snapshot
# Optionally get the block_log index
wget https://gtg.openhive.network/get/testnet/mirror/block_log.artifacts -O mirror-consensus/blockchain/block_log.artifacts
# Get binaries
wget https://gtg.openhive.network/get/testnet/mirror/hived-mirror-develop
wget https://gtg.openhive.network/get/testnet/mirror/cli_wallet-mirror-develop
# Make them executable
chmod -c 755 {hived,cli_wallet}-mirror-develop
# Get configuration
wget https://gtg.openhive.network/get/testnet/mirror/config.ini -O mirror-consensus/config.ini
# Run it for the first time:
./hived-mirror-develop --chain-id 42 -d mirror-consensus --load-snapshot mirror-consensus-bootstrap
# Next time you just need to run
./hived-mirror-develop --chain-id 42 -d mirror-consensus

What's next?

That's just a seed node and a pack of block producers (I'm pretending to be multiple witnesses until they take over), hopefully soon other peers will join (real fake producers), and once we have a fully featured API node running (in the next week or so) - dApps could start to test their stuff.

Comments · 28

  • @mercyagins(45)· 1412d

    @gtg , thank you so much! this is really helpful.

  • @kkarenmp(82)· 1494d

    I don't understand much about this but I would like to know a little more, I'm a musician but maybe music can also do something out there hahahaha my violin can contribute right?

  • @douglasjames(54)· 1576d

    Really cool stuff, thanks for the powerful tool, it's a big opportunity for the community.

  • @cervisia(64)· 1576d

    Do I see that correctly, the resource requirements range from a raspberry pi 4 4 GB. So you could also operate an API?

  • @howzat(67)· 1576d

    It's more like a dummy Hive?

  • @faucetb2002(41)· 1576d

    This is very cool stuff! Need to follow on this!

  • @quinnertronics(69)· 1577d

    untitled.gif

  • @erode(68)· 1578d

    Hello sir, it seems you are doing something for backend of Hive blockchain. And here i am commenting because I have a doubt i am running ethereum mining with 6 GPU right now in my home and it was running at 24×7 and is there any way to help hive as it was already on for full time ?

  • @josehany(80)· 1578d

    what the h... I'm shocked! This is awesome !!! BTW, While I was reading it seemed quite particular to me how you wrote it, like I imagine someone whispering to me, yes, yes, sooo niceee but be careful...

  • @urun(69)· 1578d

    nice!

  • @poshtoken(88)· 1578d
    The rewards earned on this comment will go directly to the person sharing the post on Twitter as long as they are registered with @poshtoken. Sign up at https://hiveposh.com.
  • @protokkol(67)· 1578d

    Wow wow this is one of the most interesting achievement I've seen today on hive good job and well done

  • @oflyhigh(86)· 1578d

    This will be a very interesting & meaningful attempt. Looking forward to the launch of the first DAPP, maybe it should be https://fakenet.hive.blog?

  • @yakubenko(73)· 1578d

    Good job!

  • @garseeb(42)· 1578d

    We have a similar type environment for our EHR (EPIC) and it is a great asset to build and trial things before putting them into production. This sounds fun to learn on.

  • @mushfiqul75(31)· 1578d

    Very good post

  • @acidyo(84)· 1578d

    Thanks for setting this up gtg!

  • @chinito(73)· 1578d

    I like that logo vid.. very in-your-face! the mirror world seems quite multivers like. very cool! :)

  • @hivebuzz(74)· 1579d

    Congratulations @gtg! Your post has been a top performer on the Hive blockchain and you have been rewarded with the following badge:

    Post with the highest payout of the day.

    You can view your badges on your board and compare yourself to others in the Ranking If you no longer want to receive notifications, reply to this comment with the word STOP

    Check out the last post from @hivebuzz:

    Be ready for the 5th edition of the Hive Power Up Month!
    Hive Power Up Day - May 1st 2022
  • @linlove(61)· 1579d

    • Your post has been selected for the Day By Day rewards
    • Your post will be reblogged multiple times;
    • Every day you will earn @ecency points.
  • @manniman(69)· 1579d

    Very cool stuff, HIVE is very alive, love it.

    I do run a HoneyComb for Larynx and would love to put some energy into this as well. What cloud hardware should I rent to get started working on a node?

    disregardfiat had a link to a privex server that was very suitable.

  • @leprechaun(66)· 1579d

    Cool. Are there any testnet public RPC nodes? Mirror.net may be the closest thing without running your own node.

  • @aristak(53)· 1579d

    Hive Mirrornet (a.k.a. Fakenet). ¿Is this good or bad? ¿What is that fakenet created for? Sorry for my ignorance, but I've doubts about that kind of... ¿Database? It's a database ¿Not?

  • @katrina-ariel(69)· 1579d

    This reads like a fantasy book...

    Nothing is true on the mirror net YOU HAVE TO BE CAREFUL WITH THE MIRROR

    Ah, the wonder of magical made-up realms, whether they're coded or painted with words. Thanks for all you do! 💖

  • @rmach(72)· 1579d

    I trust your sorcery 👍 Cheers!

  • @mintrawa(63)· 1579d

    It's great to have something like this 😊 the transactions we will send on it will be all processed or it's just a read only? How long a transaction created on the mirror exist before to be erased?

  • @mattsanthonyit(81)· 1579d

    Wow. That's an applause for the Hive Community. I have been looking forward for this great news for so long. Thanks @gtg you made my day and weekend awesome. I watched the YouTube video and it was great job done.

    Screenshot_20220430-223528.png

  • @toofasteddie(77)· 1579d

    so? is it a Test site for developers on HIVE before launching their final product?