Bitcoin Forum
November 13, 2024, 03:49:05 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What if "fake" block in local node  (Read 158 times)
maplelake (OP)
Jr. Member
*
Offline Offline

Activity: 47
Merit: 8


View Profile
November 18, 2019, 12:02:27 AM
 #1

If we fake block data when "GenerateBlockToAddress" PRC command,such as the nNounce cannot meet POW validation. But we force the block data is written into blk.dat.
The 'error' block data will be broadcast to another node and fails to relay to other node as it is invalidate.

What happen on local node ? Node still receive new blocks and transactions,then validate it.
How to sync blocks because the local node need save it?
How to validate new transactions ?
what is shown in local wallet with fake address ?
odolvlobo
Legendary
*
Offline Offline

Activity: 4494
Merit: 3417



View Profile
November 18, 2019, 05:36:34 PM
 #2

Your node will recieve blocks that extend the chain and your "fake block" will be orphaned.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
nc50lc
Legendary
*
Offline Offline

Activity: 2590
Merit: 6372


Self-proclaimed Genius


View Profile
November 19, 2019, 03:30:36 AM
 #3

^ additionally, your current peers may blacklist your node and you wont be able to reconnect to them for quite a while.

But you said "force in the blk.dat file", IDK if that's possible but if it is, I think your node wont sync past that particular block.
You'll have to delete the related data then reindex to sync properly.

[1] How to sync blocks because the local node need save it?
[2] How to validate new transactions ?
[3] what is shown in local wallet with fake address ?
Hold your horses.... The questions didn't connect at all.
1. It will be done automatically by your node.
2. It will be done automatically by your node.
3. There's no such thing as "fake address" and faking blocks won't affect your wallet.dat.

Based from this questions, you should start with the basics than trying to solve these scenarios.
I'll recommend you to read Mastering Bitcoin, pdf download link in the "see also".
It has everything you need to know.

█▀▀▀











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











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
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!