0

I'm taking up a project to build a software in python to mine cryptocurrency (preferably bitcoin). I have an overview of the computation that needs to be done.

I would like to know how nodes fetch unconfirmed transactions.

RedGrittyBrick
  • 26,841
  • 3
  • 25
  • 51
  • I think that's too big a question to be answerable here. You could break your question down into much smaller parts and research those separately and ask questions here about specific individual points. See what is mining etc. – RedGrittyBrick Feb 08 '22 at 16:53
  • @RedGrittyBrick Thanks! – Sarath Jyothis Feb 10 '22 at 11:19
  • So, there are three sub problems to focus on here: 1.) Fetching unconfirmed transactions 2.) Finding the nonce for hashing based on the difficulty and creating a new block 3.) Submitting/broadcasting the new block to the network for verification. I'm stuck at subproblem 1 and 3 from a programming point of view. – Sarath Jyothis Feb 10 '22 at 11:24
  • You seem to be struggling a little. I will edit your question for you -- though you can do this yourself. If you don't like my edits you can use the "rollback" option under "edit". – RedGrittyBrick Feb 10 '22 at 11:49
  • Thanks @RedGrittyBrick for making the question more appropriate. I'm gathering a lot of info from the materials provided. – Sarath Jyothis Feb 18 '22 at 08:18

1 Answers1

0

In brief you would use your Bitcoin libraries functions to perform peer discovery and then periodically communicate with a few peers to collect data.

Your question isn't an exact duplicate of any question I can find but existing answers to the following questions will help:


Other useful resources

RedGrittyBrick
  • 26,841
  • 3
  • 25
  • 51