Bitcoin Forum
May 10, 2024, 09:11:38 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What is acting as a coinbase parameter in the breadwallet source(ios version)  (Read 670 times)
zetal (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
April 28, 2017, 06:16:35 AM
 #1

https://github.com/voisine/breadwallet
I'm using breadwallet open source (above link) and i'll make different virtual currency wallet for ios app

But I can't see coinbase parameter (The Times 03/Jan/2009 Chancellor on brink of second bailout for banks)
I'm must changed this

Tell me what is acting as a coinbase parameter in the breadwallet source(ios version)

please help me
1715332298
Hero Member
*
Offline Offline

Posts: 1715332298

View Profile Personal Message (Offline)

Ignore
1715332298
Reply with quote  #2

1715332298
Report to moderator
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715332298
Hero Member
*
Offline Offline

Posts: 1715332298

View Profile Personal Message (Offline)

Ignore
1715332298
Reply with quote  #2

1715332298
Report to moderator
1715332298
Hero Member
*
Offline Offline

Posts: 1715332298

View Profile Personal Message (Offline)

Ignore
1715332298
Reply with quote  #2

1715332298
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6635


Just writing some code


View Profile WWW
April 28, 2017, 01:20:34 PM
 #2

Breadwallet is a lite weight wallet. It does not download all blocks and transactions so it does not need to know the coinbase transaction of the genesis block and thus does not need its coinbase string. All it needs to know is the hash of the genesis block, and that is hard coded into the source code.

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
April 29, 2017, 03:34:57 AM
 #3

To be precise, it is the first "hash" in the checkpoint_array[] struct defined for "main net" around line 79 in the source here:

https://github.com/voisine/breadwallet/blob/e607583477870bee2c0b4490b955c3aeb49ec7d8/BreadWallet/BRPeerManager.m

The hash is: 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
Block Height is 0.

If you're creating a wallet for a different virtual currency, you would need to adjust all of the values in this struct to match the appropriate values in the blockchain for that currency.

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


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