Bitcoin Forum
May 23, 2024, 08:42:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Run a Bitcoin Testnet 4 node  (Read 165 times)
seoincorporation (OP)
Legendary
*
Online Online

Activity: 3164
Merit: 2958


Top Crypto Casino


View Profile
May 13, 2024, 07:01:45 PM
Last edit: May 15, 2024, 03:57:24 PM by seoincorporation
 #1

How can i run a Bitcoin testnet 4 node?

Most of you know how the V3 is about to die with those 2.4M unconfirmed transactions, and the V4 is on the way, but i see the testen 4 is alive and it already has blocks (https://mempool.space/testnet4) so, how can i run a testnet v4 node?

I would appreciate it if anyone had a hint on this topic because I wasn't able to find information about this.

---UPDATE----

USER: mocacinno packaged everything in a container:
https://bitcointalk.org/index.php?topic=5496494

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6647


Just writing some code


View Profile WWW
May 14, 2024, 12:26:16 AM
Merited by LoyceV (4), seoincorporation (2)
 #2

Probably this PR: https://github.com/bitcoin/bitcoin/pull/29775

You'd have to pull the code in the PR and compile it yourself.

LoyceV
Legendary
*
Offline Offline

Activity: 3318
Merit: 16687


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
May 14, 2024, 07:10:45 AM
 #3

Most of you know how the V3 is about to die with those 2.4M unconfirmed transactions, and the V4 is on the way
I can think of several reasons to abandon the current testnet, but the transaction backlog caused by spam isn't one of them. I assume it's caused by Ordinals and other hypes, which makes it trivially easy for them to move to the new testnet. You'll still need to outbid them on fees.

seoincorporation (OP)
Legendary
*
Online Online

Activity: 3164
Merit: 2958


Top Crypto Casino


View Profile
May 14, 2024, 01:50:52 PM
Merited by LoyceV (4)
 #4

Most of you know how the V3 is about to die with those 2.4M unconfirmed transactions, and the V4 is on the way
I can think of several reasons to abandon the current testnet, but the transaction backlog caused by spam isn't one of them. I assume it's caused by Ordinals and other hypes, which makes it trivially easy for them to move to the new testnet. You'll still need to outbid them on fees.

The reasons behind the attack on the v3 are not the Ordinals, the main fixes for V4 are two:

-Add Testnet4 difficulty adjustment rules fix.
-Add timewarp attack prevention for Testnet4.

I don't understand at all the technical side of the problem, but some people describe it as a block storm https://blog.lopp.net/the-block-storms-of-bitcoins-testnet/

And if you want to follow the current discussion about the migration, you can do it on the next link: https://groups.google.com/g/bitcoindev/c/9bL00vRj7OU/m/9yCPo3uUBwAJ

Looks like devs, aren't happy at all with the fact that Testnet has a value on markets, and they are even thinking about stopping the Testnet and only moving on with the signet. But I'm sure that will not happen, the community needs the testnet even if some people give it a bad use.

Quote
3. Is all of the above a waste of time and we should instead deprecate testnet in favor of signet?

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
mocacinno
Legendary
*
Offline Offline

Activity: 3402
Merit: 4984


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
May 14, 2024, 02:04:28 PM
Last edit: May 15, 2024, 10:08:13 AM by mocacinno
Merited by LoyceV (4), seoincorporation (1)
 #5

How to do this, on sles 15 sp4 (but should work on any linux distro)

Part 1: pull the pull request

Code:
git clone https://github.com/bitcoin/bitcoin.git
cd bitcoin
git fetch origin pull/29775/head:pr-29775
git checkout pr-29775
git merge origin/master

at this point, you'll see a merge conflict... You'll need to edit src/init.cpp manually (open it with an editor and look for <<<<<<<). Some editors (like visual studio code) will make it very easy to solve merge conflicts.

then, after resolving the merge conflict

Code:
git add src/init.cpp
git merge --continue

Now, you can build Smiley

Tomorrow i *might* add a how-to build done
edit: fixed a typo (thanks LoyceV)

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
jonval21
Full Member
***
Offline Offline

Activity: 588
Merit: 111

I love the Cryptocurrency world


View Profile
May 14, 2024, 04:10:28 PM
 #6

Some new devs decide take action into the bitcoin ecosystem and some of them are mining already have millions of Tbtc4 (even satoshi group wouldnt  do such thing), the real reason is centralize testnet . Tbtc3 will be online always, there is no possible way to shut down a blockchain with POW, many people will use Tbtc3 due huge distribution for more than a decade.

BTC is based in distribuid system with no central authority (no coder is the authority in BTC)
be aware of POW system that allow fix the problem of The Byzantine generals problem

the resent attack (spam, campaing etc) to testnet3 is a clear red flag in bitcoin development, but we well see  game theroy taking action in the recents events, after that, we can predict what is going to happens to BTC ecosystem in the future.

BTC was designed for a group of people we huge knowledges in cryptograpy, distribuid system, and economic laws. so is no about just to know code.

some programmners are touching the BTC code and changing it violating the balance in the system ignoring the knoledge about distribuid system and economic laws. and that is a huge concern in the futuere of BTC.

hope some of the first (expert  in (economists  and distribuid system) programmers  be aware of this.

code is easy, what is hard is the science behind BTC.




pooya87
Legendary
*
Offline Offline

Activity: 3458
Merit: 10579



View Profile
May 15, 2024, 03:56:38 AM
 #7

some of them are mining already have millions of Tbtc4
Testnet4 is at block #25039 and even if one person had mined all the blocks they would have 1.2 million coins not "millions of tbtc4"! It doesn't matter though, testnet coins have no value and also most probably it will reset when things are decided.
https://mempool.space/testnet4

Quote
Tbtc3 will be online always, there is no possible way to shut down a blockchain with POW, many people will use Tbtc3 due huge distribution for more than a decade.
Maybe. But don't forget that we aren't talking about any blockchain. We are talking about a TEST network. When the test environment becomes useless, it will be abandoned sooner or later.

Also have you noticed it is the version 3 already? That means we've already shut down 2 of them successfully...

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
mocacinno
Legendary
*
Offline Offline

Activity: 3402
Merit: 4984


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
May 15, 2024, 07:49:33 AM
 #8

In case you want to run your own testnet4 node: i packaged everything in a container:

I did think it deserved it's own thread, since i guess other people might find it handy, and it's also still a work in progress
https://bitcointalk.org/index.php?topic=5496494

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
LoyceV
Legendary
*
Offline Offline

Activity: 3318
Merit: 16687


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
May 15, 2024, 09:32:17 AM
 #9

You'll need to edit src/init.cpp manually
You missed a "t".

Quote
You'll need to edit src/ini.cpp manually (open it with an editor and look for <<<<<<<).
How?
Code:
<<<<<<< HEAD
    // TODO: remove the sentence "Nodes not using ... incoming connections." once the changes from
    // https://github.com/bitcoin/bitcoin/pull/23542 have become widespread.
    argsman.AddArg("-port=<port>", strprintf("Listen for connections on <port>. Nodes not using the default ports (default: %u, testnet3: %u, testnet4: %u, signet: %u, regtest: %u) are unlikely to get incoming connections. Not relevant for I2P (see doc/i2p.md).", defaultChainParams->GetDefaultPort(), testnetChainParams->GetDefaultPort(), testnet4ChainParams->GetDefaultPort(), signetChainParams->GetDefaultPort(), regtestChainParams->GetDefaultPort()), ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY, OptionsCategory::CONNECTION);
=======
    argsman.AddArg("-port=<port>", strprintf("Listen for connections on <port> (default: %u, testnet: %u, signet: %u, regtest: %u). Not relevant for I2P (see doc/i2p.md).", defaultChainParams->GetDefaultPort(), testnetChainParams->GetDefaultPort(), signetChainParams->GetDefaultPort(), regtestChainParams->GetDefaultPort()), ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY, OptionsCategory::CONNECTION);
>>>>>>> origin/master
I only kept the first "argsman" line fromt he above. Is that correct?

Quote
Tomorrow i *might* add a how-to build
I'd appreciate it. I'm stuck here:
Code:
./autogen.sh 
configure.ac:39: installing 'build-aux/ar-lib'
configure.ac:37: installing 'build-aux/compile'
configure.ac:24: installing 'build-aux/config.guess'
configure.ac:24: installing 'build-aux/config.sub'
configure.ac:27: installing 'build-aux/install-sh'
configure.ac:27: installing 'build-aux/missing'
Makefile.am:7: error: Libtool library used but 'LIBTOOL' is undefined
Makefile.am:7:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
Makefile.am:7:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
Makefile.am:7:   If 'LT_INIT' is in 'configure.ac', make sure
Makefile.am:7:   its definition is in aclocal's search path.
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
autoreconf: error: automake failed with exit status: 1

In case you want to run your own testnet4 node: i packaged everything in a container:
LOL. I should have continued reading first Tongue

mocacinno
Legendary
*
Offline Offline

Activity: 3402
Merit: 4984


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
May 15, 2024, 09:55:53 AM
Last edit: May 15, 2024, 10:06:30 AM by mocacinno
 #10

Hi LoyceV,

Yup, you were right, you had to keep the top line, the bottom one is no longer needed.

It might be best to just use the container, i have it running on a demo machine and it works just fine... But if you want to try to build it on your local machine, you're always welcome to shoot me a quick PM (local language is fine, doesn't have to be in English)

I'm currently figuring out if i can build some kind of cpuminer in the same container and get it to work properly... cpumining might be long dead, it should still be feasible for testnet4.

PS: thanks for pointing out the typo, i'll fix it right away Smiley

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
LoyceV
Legendary
*
Offline Offline

Activity: 3318
Merit: 16687


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
May 15, 2024, 10:07:03 AM
 #11

I'm currently figuring out if i can build some kind of cpuminer in the same container and get it to work properly... cpumining might be long dead, it should still be feasible for testnet4.
I'll try your container next (and I've never used containers before). CPUmining would be fun, I tried it before on testnet, but had to conclude it's impossible. If there's even a single ASIC mining on testnet4, I expect CPUmining to be futile already.

Testnet4 is at block #25039 and even if one person had mined all the blocks they would have 1.2 million coins not "millions of tbtc4"! It doesn't matter though, testnet coins have no value and also most probably it will reset when things are decided.
I can think of a nice use: by the time the block reward gets low again, 1.2 million coins is enough to pay 1 testnet coin in transaction fees every 10 minutes for 20 years. That means miners will "always" get a bit more, even when the block reward is diminishing.

mocacinno
Legendary
*
Offline Offline

Activity: 3402
Merit: 4984


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
May 15, 2024, 10:29:10 AM
 #12

--snip--
I'll try your container next (and I've never used containers before). CPUmining would be fun, I tried it before on testnet, but had to conclude it's impossible. If there's even a single ASIC mining on testnet4, I expect CPUmining to be futile already.


The mining container is ready, it works, but (like you suspected) somebody is already running one (or more) asic's on testnet4.... why... i really wonder why.... why would you run an asic on a network that's designed to test ... why won't you let others get some tBTC to play with... At least, if you're nuking the testnet, create a faucet where others can have some tBTC to test out their setups...

If you need help with containers, let me know... But basically, if you trust what i've done, you could basically install docker and docker-compose on your system, make sure the docker daemon is running (on most linux distro's, a systemd service is created for you, you just need to enable and start it), then copy the content of the docker-compose.yml code block from this post (https://bitcointalk.org/index.php?topic=5496494.msg64078200#msg64078200) into a local docker-compose.yml file, edit the paths, ports and passwords and execute "docker-compose up" (or "docker-compose up -d" to start in the background)

If you don't trust what i've done (i don't blame you), you could copy the first code block in  above post in a file called "Dockerfile" (you can check all steps), then run "docker build -t name_of_image:random_tag .". At this point, you'll have an image of your own in your local repo, and you can edit the image: tag in the docker-compose.yml file to point to your local image instead of mine.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
LoyceV
Legendary
*
Offline Offline

Activity: 3318
Merit: 16687


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
May 15, 2024, 11:16:02 AM
 #13

(like you suspected) somebody is already running one (or more) asic's on testnet4.... why... i really wonder why.... why would you run an asic on a network that's designed to test ... why won't you let others get some tBTC to play with... At least, if you're nuking the testnet, create a faucet where others can have some tBTC to test out their setups...
That's what I expected. I'll just give up already, there's no point to try mining against ASICs.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!