<blockquote>
  <p>I am wondering how to create a P2P database (like blockchain?) which can be maintained by some party (miners)?</p>
</blockquote>

<p>This is quite a big question to answer in one message. There's "Mastering Bitcoin: Programming the Open Blockchain" book that explains all the internals of Bitcoin in details. Also you can refer to <a href="https://bitcoin.org/en/developer-guide" rel="nofollow noreferrer">Bitcoin Developer Guide</a> – there're answers to all you questions.</p>

<blockquote>
  <p>How do I stop spammers?</p>
</blockquote>

<p>This is why <a href="https://bitcoin.org/en/developer-guide#proof-of-work" rel="nofollow noreferrer">Proof-of-Work</a> is needed: adding a block to blockchain takes a lot of time and a lot of computations (that's why people buy fast video cards for mining). Thus, spamming is not possible.</p>

<blockquote>
  <p>And, how does a Bitcoin node start finding peers?</p>
</blockquote>

<p>There're are <a href="https://bitcoin.org/en/glossary/dns-seed" rel="nofollow noreferrer">DNS seeds</a> hardcoded in Bitcoin clients. When a new node is started it queries the seeds to get the IP address of at least one other node.</p>

CC BY-SA 3.0
2017-08-17T04:32:20.707Z
2017-08-17T04:32:20.707Z
Jeiwan
<p>Posting this in Bitcoin community because I believe that you guys would be the best to answer the question since my question is related with the blockchain.</p>

<p>I am wondering how to create a P2P database (like blockchain?) which can be maintained by some party (miners)?</p>

<p>For example, in Bitcoin community, we know that a transaction is not valid if someone attempts to transact more Bitcoins than they have. Nodes don't relay them and miners discard them.</p>

<p>What should be the approach to create this project? Also, just like Bitcoin, you transact to store data (technically) on the network. How do I stop spammers? What measure should I adopt to achieve a spam-less network?</p>

CC BY-SA 3.0
2017-04-25T12:55:15.483Z
And, how does a Bitcoin node start finding peers?
Areeb
<blockchain><block-header>
Creating a P2P network like Block Chain
Areeb
# Creating a P2P network like Block Chain

(Asked by: username_0 on 2017-04-25)

Posting this in Bitcoin community because I believe that you guys would be the best to answer the question since my question is related with the blockchain.

I am wondering how to create a P2P database (like blockchain?) which can be maintained by some party (miners)?

For example, in Bitcoin community, we know that a transaction is not valid if someone attempts to transact more Bitcoins than they have. Nodes don't relay them and miners discard them.

What should be the approach to create this project? Also, just like Bitcoin, you transact to store data (technically) on the network. How do I stop spammers? What measure should I adopt to achieve a spam-less network?

**Tags:** blockchain, block-header

> **Comments:**
> **username_0**: And, how does a Bitcoin node start finding peers?  

---

## 1 answers

### Answer by username_1 on 2017-08-17. Score: 3 | Accepted answer

> I am wondering how to create a P2P database (like blockchain?) which can be maintained by some party (miners)?

This is quite a big question to answer in one message. There's "Mastering Bitcoin: Programming the Open Blockchain" book that explains all the internals of Bitcoin in details. Also you can refer to [Bitcoin Developer Guide](https://bitcoin.org/en/developer-guide) – there're answers to all you questions.

> How do I stop spammers?

This is why [Proof-of-Work](https://bitcoin.org/en/developer-guide#proof-of-work) is needed: adding a block to blockchain takes a lot of time and a lot of computations (that's why people buy fast video cards for mining). Thus, spamming is not possible.

> And, how does a Bitcoin node start finding peers?

There're are [DNS seeds](https://bitcoin.org/en/glossary/dns-seed) hardcoded in Bitcoin clients. When a new node is started it queries the seeds to get the IP address of at least one other node.


---

