Search content
Sort by

Showing 20 of 161 results by Zeilap
Post
Topic
Board Development & Technical Discussion
Re: A Protocol Question from Stack Exchange
by
Zeilap
on 28/05/2013, 14:40:50 UTC
Post
Topic
Board Development & Technical Discussion
Re: Bitcoind transaction notification
by
Zeilap
on 28/05/2013, 14:16:52 UTC
Actually, there are two command line switches -blocknotify and -walletnotify which will call a command when a block is found and when transactions arrive.

Honestly, I would avoid using listsinceblock, it doesn't behave as you'd expect and it'll come back to bite you.
Post
Topic
Board Bitcoin Technical Support
Re: how to check an txid input coin has been spend or not ?
by
Zeilap
on 23/05/2013, 13:16:18 UTC
Where is that pool? Disk? Not RAM I suppose...

LevelDB (it's what the chainstate directory is for). It's partially cached in RAM though.
Post
Topic
Board Bitcoin Technical Support
Re: how to check an txid input coin has been spend or not ?
by
Zeilap
on 23/05/2013, 12:29:58 UTC
There is a pool of unspent outputs.
a pool of ALL unspent outputs ?

Yes, you can see its size with the command 'gettxoutsetinfo'.

Yeah. ALL unspent outputs. I'm not sure how to query it.

You don't, at least not without modifying the client to add a new RPC command.
Post
Topic
Board Development & Technical Discussion
Re: Bounty: A zero-confirm modified bitcoind
by
Zeilap
on 21/05/2013, 14:35:32 UTC
Satoshi-dice is based on BitcoinJ. One of the example projects is called PingService which listens for incoming transactions and then sends them back where they came which is pretty much the entire functionality of Satoshi-dice.
Post
Topic
Board Bitcoin Technical Support
Re: Dat Transaction Confirmation Time...
by
Zeilap
on 21/05/2013, 06:55:14 UTC
There was no fee, so you're only chance is to get in by priority. You tried to spend an output which was only 2 days old and only 1BTC. Priority is calculated as age*amount, so there's going to be lots more transactions with higher priority which come before yours. So your only chance is to get lucky where a couple of quick blocks in a row flush out all the waiting transactions, or you have to wait for your inputs to get older so your priority increases sufficiently.
Post
Topic
Board Development & Technical Discussion
Re: Plot "block size = f(block height)"
by
Zeilap
on 20/05/2013, 17:20:03 UTC
You could view source and copy the javascript data.

Code:
series: [{                   
  name: 'MB',
  data: [[1231006505000, 2.71E-4],[1231092905000, 0.0],[1231179305000, 0.0], ... ],
  showInLegend: false               
}]

The data is averaged over the day though, so maybe you need more detail.
Post
Topic
Board Development & Technical Discussion
Re: Plot "block size = f(block height)"
by
Zeilap
on 20/05/2013, 16:58:22 UTC
Like this?
Post
Topic
Board Bitcoin Discussion
Re: Say Bob sends Alice
by
Zeilap
on 20/05/2013, 16:28:39 UTC
about 200 transactions, each transaction has no tx and is signed by the last transaction, will Alice have to wait for a long period to receive the funds? Can Alice speed it up?
Huh
I believe he meant "no transfer fee".

Ahh - not sure why I couldn't work that out myself!

Anyway, the answers are that it will indeed take a long time to receive the funds (you're extremely unlikely to get more than one transaction into each block at a time), and currently the way the transactions are selected into a block in the reference client means there is no way to speed it up if miners are running unmodified clients.

This thread is relevant. Someone is doing the exact thing you describe.
Post
Topic
Board Bitcoin Discussion
Re: Say Bob sends Alice
by
Zeilap
on 20/05/2013, 14:38:52 UTC
about 200 transactions, each transaction has no tx and is signed by the last transaction, will Alice have to wait for a long period to receive the funds? Can Alice speed it up?
Huh
Post
Topic
Board Development & Technical Discussion
Re: Blockchain parsing
by
Zeilap
on 19/05/2013, 23:08:56 UTC
Anyone know the solution to this problem?

https://en.bitcoin.it/wiki/Protocol_specification#Variable_length_integer

Read the first byte as uint8 and check its value, you have 4 choices,

<0xFD:          use the value as it is
  0xFD:           read 2 more bytes as uint16
  0xFE:           read 4 more bytes as uint32
  0xFF:           read 8 more bytes as uint64
Post
Topic
Board Development & Technical Discussion
Re: Why isnt this confirming? Over 0.01 under 10k size, even includes a fee...
by
Zeilap
on 18/05/2013, 05:21:31 UTC
Your transaction is large and your inputs are young and small, so the transaction has very low priority, so it's unlikely to get selected for the free part of the block. And your fee/kB is also tiny, so it won't get selected based on that either.
Post
Topic
Board Development & Technical Discussion
Re: Why isnt this confirming? Over 0.01 under 10k size, even includes a fee...
by
Zeilap
on 18/05/2013, 01:08:16 UTC
Well thats a HUGE issue, if the change generated by your tx is going to get flagged as dust and thus your tx will never confirm.

How could no one have thought of or picked up on that!?

This will only be a problem if the mining pools all switch to 0.8.2 and you use a client version (< 0.8.2) which generates dust change outputs.
Post
Topic
Board Development & Technical Discussion
Re: Why isnt this confirming? Over 0.01 under 10k size, even includes a fee...
by
Zeilap
on 18/05/2013, 00:52:49 UTC
Sorry, talking crap - had it in my head that the new dust checks were already included in 0.8.1, so most nodes would reject the tx.
Post
Topic
Board Development & Technical Discussion
Re: Why isnt this confirming? Over 0.01 under 10k size, even includes a fee...
by
Zeilap
on 18/05/2013, 00:44:48 UTC
Your second output is considered 'dust', so your transaction won't get relayed.
Post
Topic
Board Development & Technical Discussion
Re: Is there any way to differentiate between BTC vs LTC vs altcoinX addresses?
by
Zeilap
on 17/05/2013, 02:42:45 UTC
Post
Topic
Board Development & Technical Discussion
Re: Automatic personalized wallet generation - any limits?
by
Zeilap
on 17/05/2013, 01:58:43 UTC
Looking at multiple sites that exchange Bitcoin, I noticed that a number of them offer a way to deposit Bitcoin in your account by sending it to some personalized Bitcoin address.

The method in which these are generated makes me think that there must be one or more such addresses for each account.

Are there any estimates as to how many accounts on these sites need to be created to consume any appreciable portion of the total number of addresses available?

2160 possible address hashes, 232 people on the planet. So each person could have 2128 addresses each. That's
100,000,000,000,000,000,000,000,000,000,000,000,000 addresses each. So even if you sign up to 1000's of these sites, you'll never make a dent.
Post
Topic
Board Development & Technical Discussion
Re: A bit of criticism on how the bitcoin client does it
by
Zeilap
on 16/05/2013, 16:57:36 UTC
Again: this wastes a hell lot of bandwidth, generating lots of traffic in the network each time a new block is mined.
No. That's not how it works.

I believe that I understand the purpose of the locators very well - and that is why my implementation always sends only one locator
If you do this after the last checkpoint, you're in for a surprise. Good luck.
Post
Topic
Board Development & Technical Discussion
Re: A bit of criticism on how the bitcoin client does it
by
Zeilap
on 16/05/2013, 16:01:33 UTC
Actually, if you look at this article it even clearly advises:
Quote
To create the block locator hashes, keep pushing hashes until you go back to the genesis block. After pushing 10 hashes back, the step backwards doubles every loop
Yeah, you are only at block 236k+, so just keep pushing all the hashes, starting from the top, until you reach the genesis block - a brilliant idea Wink

What's wrong with this? It sounds to me like you don't understand the purpose of the locators.
Post
Topic
Board Development & Technical Discussion
Re: btcd: a bitcoind alternative written in Go
by
Zeilap
on 16/05/2013, 01:51:26 UTC
Hang on - why are you trying to put the blockchain in a leveldb database?