Bitcoin Forum
September 17, 2024, 03:12:52 PM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 [283] 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 ... 845 »
5641  Other / Beginners & Help / Re: I want to know Random opinion about this on: October 25, 2021, 09:06:39 AM
frankly I'd like to hear random opinions regarding Shamm

There are few people who just humiliate others for not much of reason. It has happened to me too, they've usually landed in my ignore list.
And there are cases people may humiliate embarrass you because you think you know something, you even try to teach others and you actually know it wrong. It has happened to me too in the past.

Learn, grow thicker skin, learn even more, learn to use forum tools to help you - whether is search or ignore. As long as you'll keep improving, your rank will improve too.
On the other hand, grudge, stagnation (on the learning curve) and trying to rank up for the only reason to get into bounties/campaigns is a losing direction on long term.

Shamm is Full Member, although his writing is very bad. You, on the other hand, already have an advantage over him: your writing is concise, on the point, and in proper English. So, why are you worried?
5642  Bitcoin / Development & Technical Discussion / Re: Bitcoin + Electrum server + Block explorer under Windows (with WSL and Debian) on: October 25, 2021, 07:07:42 AM
In theory, Windows should cleanly save the linux subsystem to disk, and then reboot.
In reality, at times something locks and it's not done cleanly. And bad things can happen....

Thanks for the heads up. I try to always exit the consoles as gracefully as I can (CTRL-C then exit) before leaving windows do shutdown or restart. I hope that I'm on the safe side.

Good job, I hope you had fun.  You're on the right path, and you'll pick up tricks that work for you as you go along.  WSL is a great way for Windows users to immerse themselves in Linux.

Thank you for the kind words.

I prefer to run my node on dedicated hardware which I can leave running full time.  All my services are started on boot by systemd, so I just need to make sure the machine is powered on.  Unlike Linux on a physical or virtual machine, WSL doesn't have a system startup daemon like systemd.  It shouldn't be confused with a virtual machine, it's a virtual environment.

I may get there too, but for now I cannot: even the oldest working laptop in the house is being used by the kids for online classes and when I bought a RasPi for my needs I was not smart enough and bought a weak one (Zero W), from what I've read it's too weak for this job.
Maybe I'll get to buy in the near future a RasPi 4 and a 1-2 TB HDD (I find SSD overpriced for the job at this size), maybe I open a new topic on that, since Black Friday is pretty close.

It's bugging me that you are unable to install Ubuntu.

I was able to install Ubuntu. I had other problems there:
  • it didn't find for me librocksdb-dev=6.11.4-3
  • it failed in creating files/folders onto my Windows partition for electrs data

Of course, it was my first install and the problems may have been caused by something I didn't do right or I didn't do at all. Or my antivirus blocking something I forgot to unblock.
Maybe I was just luckier with Debian. However, this worked, I've noted down this and that (for the case I have to do "backtracking" until I get it right) and.. this is what I have.
If people want to try it out on any other distro, be my guest, really  Cheesy

I noticed that you used the Control Panel gui app to enable WSL, did also enable virtualization?

If you mean Hyper-V, no, it's not enabled and I don't intend to unless I really have to.
I've understood that it may interfere badly with VBox, which I still need now and then for my own tests (for simulating a fresh Windows or for running suspect apps) and my CPU is i7 so it has some in-built features, I think.

I've always installed WSL manually, you can find the installation instructions here (don't forget to start powershell as administrator):  https://docs.microsoft.com/en-us/windows/wsl/install-manual

Also, you can use powershell to interact with your WSL instances and, run them with alternate options.  For starters:
Code:
wsl --help

Although I work on Windows since Windows 95 (even 3.1, but that was for too short time), I have little experience with Power Shell. I find it too... Linux like and I didn't really need it; most of the time the normal command prompt or apps done by myself could do all I've needed.

Great instructions! This is something that many people can use well, thank you for your effort!
I will try it with your instructions, sobal my system runs correctly again.

Thank you! Please let me know if I've missed or didn't explain good enough something.
5643  Bitcoin / Development & Technical Discussion / Re: Bitcoin + Electrum server + Block explorer under Windows (with WSL and Debian) on: October 24, 2021, 11:11:05 AM
Fine tuning and other info.

Electrum

From this moment onwards, you'll be able to use Electrum with your own server.
Although I use Electrum on the same computer, I use the portable one (yeah, I'm lazy)
I've made a batch file which I run from now on instead of Electrum's exe and it looks like this:

Code: (run-electrum.bat)
electrum-4.1.5-portable.exe --oneserver --server 127.0.0.1:50001:t

Linux batch files and others

Open a new Debian console. This time we will create 2 batch files under Linux, because we are lazy. Just now we will make them directly under Linux:

Code:
nano $HOME/run_electrs.sh

And inside nano editor:

Code: (run_electrs.sh)
cd $HOME/electrs/target/release
./electrs

CTRL-X and Save

again

Code:
nano $HOME/run_explorer.sh
Code: (run_explorer.sh)
cd $HOME/btc-rpc-explorer
npm start

CTRL-X and Save

two more lines to execute:
Code:
chmod +x $HOME/run_electrs.sh
chmod +x $HOME/run_explorer.sh

Now, when you want to exit Electrs or BTC RPC Explorer, you press CTRL+C in those consoles, then exit.
When you want to run them, you start ./run_electrs.sh in one console then ./run_explorer.exe in another

Web page for block explorer

http://localhost:3002/exp/


Thank you

  • HCP for setting me on the right track
  • ETFbitcoin for hinting the correct block explorer
  • DaveF and NotATether for making me understand VirtualBox is not such a great idea
  • DireWolfM14 for trying to help me with auto-starting services, although I still don't know how to do that  Cheesy
  • everybody active in the Dev & Tech from whom I've learned a lot
  • and obviously the teams implementing all the great software I've installed and using now



It may be better to have a way to start everything from one click but I don't know how.
I've noticed that if I started bitcoind and immediately electrs, the second has failed, so now I just check when bitcoid is synced and then start electrs, I wait for electrs show it's ready and then start blockchain explorer and/or electrum. It's not optimal, but it's OK for my needs and... this is how much I've manged to do.


Edit 1: corrected/improved wording
Edit 2: corrected the .sh files per ETFbitcoin suggestion and ensured their paths too.
5644  Bitcoin / Development & Technical Discussion / Re: Bitcoin + Electrum server + Block explorer under Windows (with WSL and Debian) on: October 24, 2021, 10:51:34 AM
BTC RPC Explorer (from https://github.com/janoside/btc-rpc-explorer)

I expect this to be installed after Electrs is completely synced, and it's running.
Open a new Debian (R-Click on the Debian rectangle on the task bar and select Debian) and let's go.
Again some Linux commands to be ran:

Code:
sudo su
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
apt-get install -y nodejs
exit
git clone https://github.com/janoside/btc-rpc-explorer
cd btc-rpc-explorer
npm install

Now I've made, again under Windows, and again on my E: drive a file called .env with the content based on the official sample:

Code: (.env)
BTCEXP_BASEURL=/exp/
BTCEXP_BITCOIND_HOST=127.0.0.1
BTCEXP_BITCOIND_PORT=8332
BTCEXP_BITCOIND_COOKIE=/mnt/X/BitcoinDataDir/.mycookie
BTCEXP_BITCOIND_RPC_TIMEOUT=5000
BTCEXP_ADDRESS_API=electrum
BTCEXP_ELECTRUM_SERVERS=tcp://127.0.0.1:50001
BTCEXP_ELECTRUM_TXINDEX=true
BTCEXP_SLOW_DEVICE_MODE=false
BTCEXP_PRIVACY_MODE=true
BTCEXP_NO_RATES=true

Now copy .env into the Linux folder and start

Code:
cp /mnt/e/.env .
npm start

Edit 2022-04-17: If, at a later point, you might want to update BTC RPC Explorer, you can take a look here: https://bitcointalk.org/index.php?topic=5367296.msg59888845#msg59888845
5645  Bitcoin / Development & Technical Discussion / Re: Bitcoin + Electrum server + Block explorer under Windows (with WSL and Debian) on: October 24, 2021, 10:35:36 AM
Electrs (from https://github.com/romanz/electrs)

The steps are based on the official install page and my struggle.
Some of the tools (curl, git) were missing and I had to install them myself.

I had to do all the following commands, one by one:

Code:
sudo apt install curl
sudo curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env

sudo apt install cargo

sudo apt update
sudo apt install clang cmake build-essential

sudo apt install librocksdb-dev=6.11.4-3

sudo apt install git
git clone https://github.com/romanz/electrs
cd electrs
ROCKSDB_INCLUDE_DIR=/usr/include ROCKSDB_LIB_DIR=/usr/lib cargo build --locked --release

[later note: if sudo apt install librocksdb-dev=6.11.4-3 fails on Debian you can try sudo apt install librocksdb-dev=6.11.4*]
[later note: if sudo apt install librocksdb-dev=6.11.4-3 still fails (probably on Ubuntu), read this post for workaround]

I've edited under Windows (as e:\electrs.toml, keep this path in mind, you'll have to copy it to Linux) the config file; it was based on the config from the official example and mine looks like this (I also kept only the useful lines)

Code: (electrs.toml)
cookie_file = "/mnt/x/BitcoinDataDir/.mycookie"
daemon_dir = "/mnt/x/BitcoinDataDir"
daemon_rpc_addr = "127.0.0.1:8332"
daemon_p2p_addr = "127.0.0.1:8333"
db_dir = "/mnt/y/ElectrsData"
network = "bitcoin"
electrum_rpc_addr = "127.0.0.1:50001"
#verbose = 2 -> obsolete, was working with version 0.9.0, no longer works in 0.9.3
#use log-filters for version 0.9.3+
log_filters = "INFO"
server_banner = "Electrs @ NeuroticFish, yay!"

[Edit: version 0.9.3 doesn't like verbose in the config, using log-filters instead.]

This means that the Electrs data (up to 70 GB, according to some docs, but right now that folder on my computer is only 30 GB) will be on drive Y:, as Y:\ElectrsData
Under Debian, please create that folder:
Code:
mkdir /mnt/y/ElectrsData

Go into the correct folder and copy the config (you've saved it, right?). And don't forget the ending space and point
Code:
cd target/release
cp /mnt/e/electrs.toml .

Start electrs and let it sync, it'll take some hours in the first run.

Code:
./electrs

At a later point it will show the sweet:

Code:
[2021-10-16T13:31:39.392Z INFO  electrs::server] serving Electrum RPC on 127.0.0.1:50001


Edit 2022-04-17: If, at a later point, you might want to update Electrs, you can take a look here: https://bitcointalk.org/index.php?topic=5367296.msg59888827#msg59888827
5646  Bitcoin / Development & Technical Discussion / Re: Bitcoin + Electrum server + Block explorer under Windows (with WSL and Debian) on: October 24, 2021, 10:35:12 AM
WSL on Windows, Debian

Under windows (10), go to Start menu and type Turn Windows features on or off
Near the end of the list there's Windows Subsystem for Linux. Set that checked, OK, let it install/restart and so on.

When that's done, Start menu and type Run, and in the run box type https://aka.ms/wslstore <enter>
There install Debian (I had troubles with Ubuntu, so Debian it is).
Keep in mind that Debian and what's on it will take some 4.5 GB on the Windows drive. [Edit 2022-02-17: if the size on windows partition is a problem like it was for me, here's the solution.]

Start Debian, create an user and password for yourself and we can continue the real deal.

If you have an aggressive antivirus like myself (e.g. Comodo), it may be a good idea to disable the auto containment component. And don't forget to re-renable it after all the install is done.
I didn't do this at start and I've lost a lot of time because this or that was blocked from running under WSL.

It worth mentioning (thank you HCP, you have spared me a lot of time) that for each Windows drive, under Debian you'll have /mnt/<drive letter>/your path on that drive

Update the OS:

Code:
sudo apt update
sudo apt dist-upgrade
5647  Bitcoin / Development & Technical Discussion / Bitcoin + Electrum server + Block explorer under Windows (with WSL and Debian) on: October 24, 2021, 10:00:41 AM
This may be useful to others too, since I've spent quite a lot of time figuring out how to have everything working on a machine that runs a lot, but it's on Windows.

This walkthough is meant to show how to install an Electrum server (electrs) and a block explorer (BTC RPC Explorer) on (more or less) Windows. It's "more or less" because I actually use WSL (windows subsystem for linux) to get a Debian run under Windows.

If you have only one wallet and you don't want your block explorer, Electrum Personal Server may be enough for you. Start reading the other thread from here, I have 2 posts on that topic.

Electrs is not restricted to one wallet and also has useful data for the block explorer, hence this more generic setup was what I was looking for.

I will post all the details I remember and I will post also my config files too. Improvements are welcome, since I'm not really a Linux guy and, as said, most of this setup is still under Linux.

Bitcoin

Bitcoin is easy to install under Windows, it just runs, make sure your data directory is set somewhere with plenty of space, I use an external drive (X:\BitcoinDataDir)
I've created in X:\BitcoinDataDir a file bitcoin.conf with the following content:
Code: (bitcoin.conf)
txindex=1
server=1
rpcbind=127.0.0.1
rpcallow=127.0.0.1
rpccookiefile=.mycookie

Some extras:
1. If you want to not be too generous with the network, you may be tempted to use maxconnections in your config. Although I've read you should put minimum value 12, it's not enough. When I've tried that the block explorer may not be able to connect. With a value like 25 it was OK.
2. Make sure that if you use maxuploadtarget in your config, you also add whitelist=download@127.0.0.1

Of course, you can just keep it simple and don't add those extras.

I've also made 2 batch files because I'm lazy. Both are in the same folder ad bitcoind.exe and I've made for both shortcuts onto desktop.

Code: (start_bitcoin.bat )
bitcoind -datadir=X:\BitcoinDataDir

Code: (stop_bitcoin.bat)
bitcoin-cli.exe -datadir=X:\BitcoinDataDir stop

As a note, keep in mind that bitcoind will "discuss" with electrs and the block explorer only after the console shows progress=1.000000
And yes, you should leave at least bitcoind run as much as possible.


LE: If you prefer to use all this with RPC user/password instead of RPC cookie file, the configs are adapted in this later post.
5648  Local / Presa / [2021-10-21] Descindere a ”Crimei Organizate” [...] „țeapă” cu criptomonede on: October 24, 2021, 08:24:45 AM
Descindere a ”Crimei Organizate” Timișoara la un italian care a dat „țeapă” cu criptomonede

Asa, ca titlu de duminica...  Cheesy
Se pare ca nu avem destui tepari de-ai nostri, chiar si italienii vin aici sa dea tepe (tot la italieni!)

bărbatul a fost de acord să administreze ”ferma” în schimbul a 10% din profit.
[...]
În ianuarie anul acesta, când toate echipamentele au fost instalate [...].
Unul dintre investitori a constatat în martie că nu mai avea acces pe platformă și că dispăruse contul.
[...]
din investigații a reieșit că italianul care trebuia să aibă grijă de ”ferma” a închiriat un alt spațiu în Arad și a mutat toate echipamentele și a continuat minarea după ce le-a blocat accesul proprietarilor echipamentelor. De asemenea, acesta s-a conectat ilegal la rețeaua de electricitate. Prejudiciul este de 400.000 euro.
Cetățeanul italian este trimis în judecată de DNA pentru fraudarea fondurilor europene.

Voi fi ingaduitor cu chinul redactorului in legatura cu partea mai tehnica a Bitcoin.
Interesant este ca omul va fi judecat in primul rand pentru fraudarea de fonduri europene (probabil ca de aceea mutase ASIC-urile la Arad) si poate, apoi, pentru furtul de curent electric. Italienii cu bitcoinii si ASIC-urile pot sa mai astepte.

Deci da, e un exemplu "foarte bun" pentru toti aia care se gandesc ce afacere buna fac sa-si cumpere ASIC si sa le dea la hosting pe cine stie pe unde, ca-i mai ieftin. Vorba aia: dai, n-ai.
5649  Bitcoin / Development & Technical Discussion / Re: Compromise between fees and storage/bandwith cost on: October 24, 2021, 07:55:52 AM
If we assume that the avg fee per vbyte and the block size limit are inversely correlated;
If we assume that the the demand for block space is constant;
If we assume that the block occupancy rate is constant;
Then

Since the block size limit didn't change and the avg fee is still changing, first assumption doesn't make sense.
If you look at mempool.space for a couple of months, you'll see how incorrect the second and third assumptions are.

And, unfortunately, since the assumptions are incorrect, the rest doesn't actually matter.
So, sorry, but no.
5650  Other / Off-topic / Re: Encrypted USB backup suggestions on: October 23, 2021, 07:05:36 PM
Maybe keep on USB a VirtualBox machine?

I find a portable Linux much better idea: it doesn't need another OS to start.
And small tools, like 7zip/p7zip should be available too.
5651  Alternate cryptocurrencies / Altcoin Discussion / Re: Some entrepreneurs harvesting biometric data for free crypto on: October 23, 2021, 07:02:14 PM
Are we crossing the line or this is an innovation to celebrate about?

While a lot of tools lately work with biometric data and they do need test data until they come as final product, hence harvesting biometric data can have a good side too, I fear that this is not enough and sooner or later they can get out in the wild - and getting on government hands is the least evil thing I would think about actually.
So I'd say that they're crossing the line.
5652  Local / Altcoins (Monede Alternative) / Re: Nodle Cash APP on: October 23, 2021, 06:36:57 PM
Iar pe urma, g3amb0, esti roman sau nu? Pentru ca traducerea pare mai mult a fi una automata si totodata cam gresita ..

Subscriu. Inventiva traducerea. Nu ar fi fost rau sa fi fost in romana si nu in

Romani

I-am notificat (cred) pe cei "responsabili" pe Twitter, sunt chiar curios daca reactioneaza.


Si tind sa fiu de acord si cu problemele legate de transferul de date si conectarea bluetooth (care credeam ca are nevoie de acceptul utilizatorului pentru conectare!).
5653  Other / Off-topic / Re: Encrypted USB backup suggestions on: October 23, 2021, 05:56:09 PM
I find 7zip the easiest to use, although people will not consider it professional. But it handles AES 256 and also encrypts file names for better privacy. Of course, it's just an archiver, but it does the job.

OP, keep in mind that USB sticks are rather fragile, so multiple backups are a must.
5654  Other / Beginners & Help / Re: How bitcointalk.org earns money on: October 23, 2021, 05:24:39 PM
Is there any updated information?

The last info is in this topic. In this moment it shows that it was last edited this year.
Also it's consistent with the old known addresses. You'll see that 750 didn't move and 500 have moved to multisig.


Also it's expected that those old funds will remain untouched, since the ad revenues may cover everything good.
5655  Bitcoin / Hardware wallets / Re: Ledger nano X discount on: October 23, 2021, 04:48:05 PM
I was actually not aware of the problem that everyone is pointing to. Would it be a better choice if I grab the Nano S instead? Aside from the Bluetooth and the iOS support, are there any disadvantages when compared to Nano X?!

The Nano S problem, as said, is the memory space.

If you use small number of coins long time or you have a laptop at hand to uninstall some apps and install new ones as you need, you'll be find. Of course, if you plan to leave without a laptop, this needs a bit of planning.
And if you want to use it with an Android mobile you'll need an OTG data cable (not necessarily from Ledger) or adapter.


Also, if you plan to use Ledger's official online store, my advice is to try to avoid giving them your home address (send to POBox or similar).
5656  Other / Meta / Re: I need help, my thread is not published in ALTCOINS on: October 22, 2021, 01:29:22 PM
could anyone say me why is not published

It is published, but because of the high activity it's already on page 2.
5657  Economy / Reputation / Re: Bounty scammer get payed without troubles... warnings just ignored on: October 22, 2021, 10:34:18 AM
My heuristic approach to investment tends to avoid putting my hard-earned money into projects that cannot even assess the quality of their own whitepaper translation.
I don't know how many next-bitcoin or next- amazon I failed to invest in, probably zero.

If there would have been a next-bitcoin or next-amazon, we would have heard of it Cheesy
A project can be good even if it's not next-bitcoin. But you're right, there may be maybe 1% of all the projects that worth taking a first look into, and so many signs are there one doesn't even have to get to the whitepaper. And if the team couldn't double check at least the English white paper... yeah...
...But I did say that the logic in that post stands most of time Cheesy
5658  Economy / Reputation / Re: Bounty scammer get payed without troubles... warnings just ignored on: October 22, 2021, 10:17:45 AM

Man, that sentence in English doesn't even make much sense, never mind the Italian translation!  


Lol! This is literally from the original Whitepaper.
Do you know when not to invest in a shitcoin? Never invest in a shitcon, otherwise, they wouldn't be called shitcoins in the first place!When they cannot even write a proper sentence in playing English: let's figure out the quality of coding skills!



Keep in mind that although this stands most of the time, there can also be cases when the original whitepaper was not English and was translated into English by another shitty translator.
5659  Bitcoin / Wallet software / Re: USBWallet - Portable Wallet With AES Encryption on: October 22, 2021, 09:59:12 AM
I didn't run the app, I've looked a bit into the sources though, out of curiosity.

I would not run the provided exe and I don't know if it's related or not to this (rather messy) source code (a lot of functions are not called by any code, names like button7_Click)
It gets with NuGet BouncyCastle, EF, SQLite, JSON but doesn't seem to use them at all. The only package used is some special ListView.

It looks in the Windows registry for all the wallets derived from Bitcoin Core (searching for the reg value strDataDir).
It seems to be trying to copy the whole datadir to USB in order to make it, you know, portable  Wink

It doesn't seem to start any wallet. One arrow copies blockchain to USB (and creates some strange bat and sh files, trying to run an bitcoin-qt-like exe that doesn't seem to be copied), another arrow copies the blockchain back to HDD.

The encryption is also not called, for example. So the app is far from what's advertised.

I hope that I've fed your curiosity. For me it was simply wasted time.
5660  Bitcoin / Electrum / Re: Electrum server on Windows (or VirtualBox, or, even better, WSL) on: October 22, 2021, 08:56:17 AM
You have brought Electrumx to run? Can you help me with that? I also installed the RPC Explorer, but it needs Electrumx to display addresses.
I fails to successfully start ElectrumX.

I've installed Electrs, not ElectrumX. Electrs install went very easy on Debian under WSL.
BTC RPC explorer seems to be happy with Electrs.

I plan to write down the steps -  probably in the week-end.
Pages: « 1 ... 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 [283] 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 ... 845 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!