Bitcoin Forum
May 26, 2024, 04:32:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 [4] 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 »
61  Bitcoin / Development & Technical Discussion / Re: Block #503198 what is it ? on: January 10, 2018, 07:45:08 AM
If they solve a block very quickly after the previous block N (i.e. only a few
seconds later), then they simply relay an empty block N + 1
Absurd. Nonsence. Very poor understanding from legendary forum user  Cry

enlighten us
62  Bitcoin / Development & Technical Discussion / Re: Block #503198 what is it ? on: January 09, 2018, 06:28:43 PM
The protocol leaves it up to the miner to decide which transactions to include in a block. There is no requirement for them to include any transactions at all, other than the "coinbase" transaction which specifies where to send the block reward.

However, most transactions have fees attached, which the miner can collect only by including those transactions in the block. So this gives the miner an incentive to include transactions if there are any outstanding.

Note that a block with no transactions does still contribute to the security of the currency: it increases the amount of hashing that an attacker would need to do to reverse a transaction recorded in a previous block.

(They would have to produce a chain showing more work than the current one, including the work proved by the zero-transaction block.)

whats the use of such block ? if they are not helping network to reduce the unconfirmed tx ? they are only making it hard to reverse the tx or providing their hashpower.

so what needs to be done to mine such block ? what do you tell your miner ? not to include any tx .

what happens when more people start to do same thing ., and not include transactions in block ?

i gotta read more stuff now, all this time i missed it, block can be empty too, then what is block made of ? how is the coinbase tx gets created/generated.

dang.

edit:

looks likr consensus is what i need to look into.

block = coinbase tx + regular tx (optional)

coinbase tx gives block reward
regular tx gives tx fees.




thanks .
63  Bitcoin / Development & Technical Discussion / Block #503198 what is it ? on: January 09, 2018, 06:13:29 PM
i am parsing blockchain and came to this strange block.

Block #503198


ref: https://blockchain.info/block/00000000000000000011b4db68e2f052572fdfd93c8293257b7727429f5418b9

and lots of questions came to mind.

why this block has only 1 tx ?
its not like beginning days of bitcoin when only 1 tx used to be there in a block, there are backlog of 100k+ tx and why this block only has 1 tx ?

all previous and later blocks has 1k+ tx in them, then why is this block empty ?

what am i missing here ?

thanks for your time.



64  Bitcoin / Development & Technical Discussion / How to speed up json/rpc calls ? to bitcoin core on: January 09, 2018, 12:54:08 PM
hi,

i am trying to load bitcoin blockchain in mysql.,
and going through the simple json/rpc way.

at current speed , it will take about 1 year+ to process all blocks till today and all transactions.

i am using php to query data.

is there way to speed up the process ?
by using multiple threads ? i can do that.

how many parallel/multiple threads the bitcoin-core json/rpc can handle ?

anyone tried this approach before ?


Thanks for your time.

65  Bitcoin / Development & Technical Discussion / bitcoin PHP json rpc error "JSON value is not an integer as expected" on: January 03, 2018, 12:01:02 AM
i am trying to connect to my local bitcoind using php json library https://github.com/aceat64/EasyBitcoin-PHP specified in https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#PHP


i am trying to get block data. e.g.

Code:
$bitcoin = new Bitcoin('user','password');
$blockhash = $bitcoin->getblockhash('502284') ;


i am getting

JSON value is not an integer as expected


on further debuggng


$curl_error = curl_error($curl);

Code:
(
    [result] =>
    [error] => Array
        (
            [code] => -1
            [message] => JSON value is not an integer as expected
        )

    [id] => 1
)


this happens only with blockheight 502284 and not with other blocks.,

if i do this in command line using bitcoin-cli , then i can get proper output.,

but calling from php json/rpc i am getting warning and no result.

how can i fix this ? thanks for your time.[/code]

EDIT 1 :

on further inspection it seems this is only affected to

getblockhash

as it returns output in int instead of string., and while json doesnt works properly if int starts with 0 ., so it gives warning .,

thats what i think.

EDIT 2 :

if i do this

Code:

[root@localhost ]# curl --user user:password --data-binary '{"id":"curltest", "method": "getblockhash", "params": [502284] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/
{"result":"0000000000000000001345b1216c6dfa6e3bdd2774d67c7a85ea6552e2245c08","error":null,"id":"curltest"}


i am getting proper output, so its not issue with bitcoind., but looks like php library.
66  Economy / Web Wallets / Re: Invalid Bitcoin Address ? on: December 28, 2017, 04:12:57 PM
that is blockchain.info login id.

wallet addresses are inside the blockchain.info website.

login to blockchain.info
goto addressess.

you will get address there.
67  Bitcoin / Development & Technical Discussion / Re: Tracking down stolen Bitcoins on: December 28, 2017, 03:25:03 AM
you can see where are your coins, but you cant find a person who owns them.

what if someone loads them on some exchange and get altcoins by selling those bitcoins., then he got totally fresh bitcoins.,

so in practical world its not possible.

you cant make every bictoin wallet use to blacklist address ., bitcoin is decentalized in nature., so nobody can control whats going on .




68  Bitcoin / Development & Technical Discussion / Re: why are developers not increasing blocksize ? on: December 17, 2017, 04:51:27 AM
They already did. SegWit increased the block size limit from 1MB to 4MB. Nothing else to do but wait for more people to start using it.

what do you mean by people ?

miners or bitcoin-core software users running full node ?
69  Bitcoin / Development & Technical Discussion / why are developers not increasing blocksize ? on: December 17, 2017, 02:55:11 AM
i mean ,current unconfirmed count is 150k and its stable at that point , means new high fees tx are only getting mined.

amd network is very slow and congested., it take around 30-40 minutes to get 4-6 confirmations for single tx having 420 sats / byte fees. and its very high fee.

why not increase blocksize , and allow more tx to fit in a single block, and make it quicker to send btc like it was before.


its really pain in the ass, sending btc from one place to another and this another place requires 6 confirmations to verify the payment.,
and it takes around 40- 45 minutes sometimes 60 minutes for tx to show on .

bitcoin is already popular and new people are jumping in to it..,

so tx count / second is gonna increase, eventually, why not get ready for it ?

who decides what will be block size ?

code developers ?
consensus ?

will all miner's code needed to be modified ? even ASIC ?

70  Bitcoin / Development & Technical Discussion / Re: bitcoin development with Golang on: December 13, 2017, 08:36:47 AM
i dont understand what you are trying to do.,

there is bitcoin core
btcd is an alternative full node bitcoin implementation written in Go (golang).

https://github.com/btcsuite/btcd

,

if you just want to do RPC calls to your node running, Bitcoin core, then you can do that from any major language. listed here
https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)



71  Economy / Exchanges / Re: Most Secured Crypto Exchange on: December 13, 2017, 08:31:17 AM
short answer, there is none.

long answer,
you will never know, when which exchange will get hacked. even sites like google, facebook gets hacked at some level.

so keep your funds in cold wallet / hardware wallets., and only keep those in online wallet which you need to transact often.

offline wallet is best wallet.
72  Bitcoin / Development & Technical Discussion / What is best way to get all blockchain data in mysql ? on: December 12, 2017, 12:58:06 PM
i am looking for best available way to get all blockchain data in mysql.

best as in, a single program should parse blk files and insert data in mysql , insteading of creating dump file and then me, importing that dump file in DB

so i can further process data.,

i will be running full bitcoin node ,

i can see there are multiple options/projects on github but idk which works best and isnt abandoned project.

what you guys are using ?

Thanks for your time.,

 
73  Alternate cryptocurrencies / Altcoin Discussion / Re: How to Fork Bitcoin? on: December 12, 2017, 12:48:47 PM
You need to have huge hashing power at first.
https://bitcointalk.org/index.php?topic=225690.0 this can help you.

You don't need a huge hashing power, just remove the breakpoints and you will start at point zero. Just clone the Bitcoin Github source (like Litecoin, Dogecoin and so on did) and change the genesis block, change block time, total number of blocks and remove the checkpoints. If you have knowledge of c or c++ this is pretty easy. If you don't have any programming experience this might be too difficult.

The article mentioned is pretty complete.

Can I make it non-mineble? I mean I want to directly create all of coins. And I don't have any code language knowledge. :/

if you dont have coding experience, then your best option is to hire someone from fiver,upwork., look for those who have crypto experience.,

there used to a site, which could create a new coin as per your requirement, on the fly for small fee, e.g. 50 bucks. or so.

they even used to give you core app.,
i dont recall its name . google coin creator., or something like thatl.
74  Bitcoin / Development & Technical Discussion / Re: Making Money.. Transaction fee question? on: December 11, 2017, 04:19:49 PM
block creator/miner gets block reward and all tx fees.

so its up to the pool/pool admin , you are mining with which decides how much % every miner gets.

i have never mined in pool, so cant say much about it.
75  Bitcoin / Development & Technical Discussion / Re: Finally showed up! on: December 10, 2017, 01:25:55 PM
next time before making tx, check the https://blockchain.info/unconfirmed-transactions

if Unconfirmed Transactions count is greater than 30k, then you should increase the fees, if you want your tx to confirm faster.

or even better,check this site: https://bitcoinfees.earn.com/
the number of uncomfirmed transactions is closely connected to the median satoshi/bytes fee,but it is not the only criterium
by which you should decide what fee you are going to use,the site I linked gives you a very good idea
about what kind of fee you should use if you want your tx to get confirmed in a reasonable amount of time

thanks, this is great.,

they even have API.

https://bitcoinfees.earn.com/api/v1/fees/recommended

gives

Code:
{"fastestFee":420,"halfHourFee":400,"hourFee":280}

i guess, its sat/Byte
76  Bitcoin / Development & Technical Discussion / Re: How to read/parse blockchain and get bitcoin addresses having balance. on: December 10, 2017, 12:22:43 PM
its a old one, but if you still want it here is it.

Code:
https://transfer.sh/jfQfE/balances.zip
77  Bitcoin / Development & Technical Discussion / Re: Block explorers that show details of unconfirmed transactions - how? on: December 10, 2017, 06:57:00 AM
yes,

blockexplorer s are using heavily modified bitcoin-core or custom implementation.,

all new tx are stored in mempool .aka. unconfirmed tx
so block explorer sites show you unconfirmed tx from their mempool.

when new block gets generated/mined, at the time of parsing, all the tx from mempool gets removed which are included/mined in the current block.

and so on.


 
78  Bitcoin / Development & Technical Discussion / Re: Why BTC still dont spendable? on: December 10, 2017, 04:59:17 AM
what do you mean ?

do you mean, that your tx have not been confirmed ?
if thats the case. then its because there are lots of pending tx on the network., only the higher fees tx gets confirmed in current situation.

i hope this helps.
79  Bitcoin / Development & Technical Discussion / Re: What happens if mempool grows huge? on: December 10, 2017, 03:49:25 AM
more memory gets alloted for mempool.,
i read in source , there is limit of ~400 mb., but it does not stops bitcoin-core to use more memory in case of 400 mb gets full.
80  Bitcoin / Development & Technical Discussion / Re: time to re-sync a powered-off fullnode on: December 10, 2017, 01:33:06 AM
- does a fullnode after a power-outage (e.g. 24h) automatically re-sync?
Depends. For Bitcoin Core, if your client gets shut down unexpectedly, your database might get corrupted. If that happens, you'll have to reindex the whole database which would take quite a while.
- Does such re-sync entirely depend on the speed of my internet connection?
No. It's mainly dependent on your processor and also the speed of your hard disk. It's the same with when your client gets synchronized the first time.

doesnt block files get downloaded again ?

after unexpected power down of bitcoin-core ?

or it just rereads .blk files and creates chainstate db ? so no need to download blok files again.

Thanks
Pages: « 1 2 3 [4] 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!