Bitcoin Forum
May 28, 2024, 10:23:32 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 [2] 3 4 »
21  Local / 中文 (Chinese) / Re: 预测十年以后一个比特币价值几多 on: September 24, 2013, 02:35:05 PM
10W刀!哈哈
22  Local / 中文 (Chinese) / Re: 我投资了letsdice.com可是他们都说我傻…… on: September 24, 2013, 02:32:36 PM
LD现在主要问题就是人气不足。。

前期种种可疑点,不知从哪冒出来的团队,但从技术角度看,产品还是花了些功夫,结合JD现状,LD说不定会牛逼一把,IPO时没注意,擦
23  Bitcoin / Development & Technical Discussion / Is GetPerformanceCounter() thread safe? on: September 17, 2013, 07:55:39 AM
gettimeofday() is a non-thread safe function, I think here should add mutex lock.

Quote
inline int64 GetPerformanceCounter()
{           
    int64 nCounter = 0;
#ifdef WIN32
    QueryPerformanceCounter((LARGE_INTEGER*)&nCounter);
#else       
    timeval t;
    gettimeofday(&t, NULL);
    nCounter = (int64) t.tv_sec * 1000000 + t.tv_usec;
#endif       
    return nCounter;
}
24  Local / 中文 (Chinese) / Re: 比特先锋团队主导翻译的Bitcoin.org简体中文版已正式上线 on: August 03, 2013, 04:19:54 PM
Double spending,建议翻译为“多重花费”,比较准确
25  Local / 媒体 / Re: 比特币首个自媒体--”洋洋访谈“节目 接受社区审查贴 on: July 09, 2013, 02:55:53 AM
支持,不过对采访对象收费很奇怪
26  Local / 中文 (Chinese) / Re: 比特币的前程可能会被矿机毁掉 on: July 06, 2013, 05:07:30 PM
1.  ASICS killing BTC ? 参见: https://bitcointalk.org/index.php?topic=248828.0

2. 比特币的分布不是楼主想象的那样的: http://bitcoinlead.org/t/4433

27  Local / 中文 (Chinese) / Re: 大数据时代的隐私,比特币的商机 on: July 06, 2013, 05:03:13 PM
过度追捧大数据,像股评文章,技术细节不甚了解,不接地气。

比特币的交易数据相对杂乱。现在银行、电商、医疗积累的数据已经非常庞大了,而这些数据相对都是结构化的比btc优质,也不过just so so,而blockchain里的仅是纯金额记录而已,地址数量又非常庞大,噪音大。商业价值相对偏低。

Mixing Server是鸡肋,大部分人根本不在乎是否匿名。要完全断掉追踪链,最好的就是btc->fiat currency -> btc,转一次就断掉追踪链了。将来可能Zerocoin加入彻底解决匿名性不完全的问题。

1984的担心有点搞笑,现在QQ记录、银行记录、电话记录,政府全部可查,本来就已经生活在1984里了,还担心什么1984?btw,btc交易追踪IP是不靠谱的,很容易藏匿。
28  Local / 中文 (Chinese) / Re: 翻译:wiki比特币合同和智能财产 on: June 30, 2013, 02:56:24 PM
哈哈,生涩,楼主应该还没理解透
29  Bitcoin / Development & Technical Discussion / Re: getinfo() and the current number of blocks on: June 25, 2013, 03:33:17 PM

calling getinfo will return the number of blocks my bitcoind has
knowledge of/processed/indexed , - however is there a way of knowing
how many blocks it needs to know of to be in sync ?

At present I manually check the number of blocks returned by getinfo
with what blockexplorer.com shows

MK

Bitcoin generate 2016 blocks in two weeks. You can calc block's height by time.
Usually it's a litter short than 2 weeks.
30  Bitcoin / Development & Technical Discussion / Re: Copying instead of downloading the blockchain on: June 25, 2013, 03:28:02 PM
You can use bootstrap.dat when first start an bitcoind.

FYI:
https://bitcointalk.org/index.php?topic=117982.0
http://eu2.bitcoincharts.com/blockchain/
31  Bitcoin / Development & Technical Discussion / Re: which address will get the money in multisig? on: June 25, 2013, 03:21:22 PM
In P2SH, there are two scripts.  The first script is a stub that makes other nodes recognize it as a P2SH script, and it includes the hash of the second script.  The second script can be anything, and it isn't revealed until the transaction is redeemed.  The hash of the revealed script must match the hash embedded in the stub.

Multisig is just a special script that has an instruction that verifies that at least M-of-N signatures are present.  This script can be in a normal transaction, or it can be in a P2SH transaction.

The stock client understands multisig via P2SH.  There are commands to create P2SH multisig addresses, and the client will understand them correctly.  If the client knows the P2SH address in question, and knows enough of the keys to redeem it, then the transaction will show up in listunspent, and the value will be calculated in your wallet balance, etc.

They all share some coin, P2SH is just one address(generated from multi public key) with redeemScript, Multisig has at least one address.
The coin which they shared is not belong to any one of these addresses.
To spend the coin, they all need at least one private key to sign.
Use command "#bitcoind gettxout xxxxx n" can find them before spend.

I think they the same thing, just looks different. P2SH looks more simple than multisig.
32  Bitcoin / Development & Technical Discussion / Re: which address will get the money in multisig? on: June 25, 2013, 11:27:26 AM
Seems a lot of people don't understand what a multisig transaction is.

It requires 2+ crypto keys to unlock the transaction and the output can then be put into any address the owners of those two keys wish.

as far as I know, no wallets will show this particular transaction as part of the balance for either address.

so in that sense, it's in a special JOINT ACCOUNT.  It might be possible to make a special kind of wallet app that can show the balance of such a joint account(perhaps one already exists), however this balance cannot be spent without BOTH private keys.

so what's the difference between p2sh and multisig?
33  Bitcoin / Development & Technical Discussion / which address will get the money in multisig? on: June 23, 2013, 05:03:17 AM
Transaction:
https://blockchain.info/tx/60a20bd93aa49ab4b28d514ec10b06e1829ce6818ec06cd3aabd013ebcdc4bb1

Dump Tx raw, here is vout part:

Quote
    "vout" : [
        {
            "value" : 0.01000000,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "1 04cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e7e2e 6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4 0461cbdcc5409fb4b4d42b51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5 b0e4ef8551946d8a540911abe3e7854a26f39f58b25c15342af 2 OP_CHECKMULTISIG",
                "hex" : "514104cc71eb30d653c0c3163990c47b976f3fb3f37cccdcbedb169a1dfef58bbfbfaff7d8a473e 7e2e6d317b87bafe8bde97e3cf8f065dec022b51d11fcdd0d348ac4410461cbdcc5409fb4b4d42b 51d33381354d80e550078cb532a34bfa2fcfdeb7d76519aecc62770f5b0e4ef8551946d8a540911 abe3e7854a26f39f58b25c15342af52ae",
                "reqSigs" : 1,
                "type" : "multisig",
                "addresses" : [
                    "1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F",
                    "1A8JiWcwvpY7tAopUkSnGuEYHmzGYfZPiq"
                ]
            }
        },
        {
            "value" : 0.46452304,
            "n" : 1,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 c812a297b8e0e778d7a22bb2cd6d23c3e789472b OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a914c812a297b8e0e778d7a22bb2cd6d23c3e789472b88ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "1KEtUA8f76CpHmFukC28uUsfsUduexvsSB"
                ]
            }
        },
        {
            "value" : 0.00500000,
            "n" : 2,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 641ad5051edd97029a003fe9efb29359fcee409d OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a914641ad5051edd97029a003fe9efb29359fcee409d88ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "1A8JiWcwvpY7tAopUkSnGuEYHmzGYfZPiq"
                ]
            }
        }
    ],

In vout[0], there are two address("1AJbsFZ64EpEfS5UAjAfcUG8pH8Jn3rn1F", "1A8JiWcwvpY7tAopUkSnGuEYHmzGYfZPiq") got value 0.01000000, but which address gets the money?
34  Bitcoin / Development & Technical Discussion / Re: In what situation vout[N]->scriptPubKey->addresses can be more than one address? on: June 10, 2013, 04:55:59 PM
why vout[N]->scriptPubKey->addresses set as an array, I saw most of them just one address in it.

In what situation vout[N]->scriptPubKey->addresses can be more than one address?
multisig/multiaddress transactions.

could you please show me an exist Tx id like this?
35  Bitcoin / Development & Technical Discussion / In what situation vout[N]->scriptPubKey->addresses can be more than one address? on: June 10, 2013, 04:37:14 PM
why vout[N]->scriptPubKey->addresses set as an array, I saw most of them just one address in it.

In what situation vout[N]->scriptPubKey->addresses can be more than one address?

example raw Tx vout:
Code:
    "vout" : [
        {
            "value" : 1.01839070,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 291921b5e6a69b8fd69e3028781788bb25253e4a OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a914291921b5e6a69b8fd69e3028781788bb25253e4a88ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "14kJp3c6FVRQgNHpjsiisuKWqPqj58FB9p"
                ]
            }
        },
        {
            "value" : 50.00000000,
            "n" : 1,
            "scriptPubKey" : {
                "asm" : "OP_DUP OP_HASH160 9f1c05f9200f65712601f6c74f9d22b31aa8d12b OP_EQUALVERIFY OP_CHECKSIG",
                "hex" : "76a9149f1c05f9200f65712601f6c74f9d22b31aa8d12b88ac",
                "reqSigs" : 1,
                "type" : "pubkeyhash",
                "addresses" : [
                    "1FWJ1bb2JiGZqKVnDZzyZoPqqXebpyWUKW"
                ]
            }
        }
    ],


36  Bitcoin / Development & Technical Discussion / Re: A Tx that input amount is less than output amount, bug or something? on: May 31, 2013, 06:34:38 AM
These are newly generated coins by a miner. The extra 6BTC are from fees paid by people sending transactions. It's just in a confusing layout. Try looking up the transaction on blockchain.info or looking at the block they were generated in to see that the fees add to the extra amount.

forgot the tx fees...
37  Bitcoin / Development & Technical Discussion / A Tx that input amount is less than output amount, bug or something? on: May 31, 2013, 05:12:50 AM
Hash?: 80cb9856e21d0e35ff529328e8bd766a9a9bd4a10cfe2a3c099d0602b6a1eeb1
Appeared in block 55812 (2010-05-14 18:49:57)
Number of inputs?: 1 (Jump to inputs)
Total BTC in?: 50
Number of outputs: 1 (Jump to outputs)
Total BTC out?: 56.71
Size?: 135 bytes
Fee?: -6.71


see tx details:
http://blockexplorer.com/tx/80cb9856e21d0e35ff529328e8bd766a9a9bd4a10cfe2a3c099d0602b6a1eeb1

38  Bitcoin / Development & Technical Discussion / Re: can't find some transaction in my bitcoind on: May 28, 2013, 09:49:05 AM

I do recall reading somewhere that there is perhaps a bug that prevents this particular tx (i.e. in block 0) from being seen via "getrawtransaction" - perhaps Pieter would know more about this.

At the same time I would be curious to know if "-blocknotify=cmd" would work (is that how blockexplorer got its information?).

In any case that 50 BTC *cannot* be spent (so no need to worry about this tx as being an UTXO).


can't find raw tx:
1. pblocktree->ReadTxIndex(hash, postx) read failure, tx is NOT in pblocktree.
2. view.GetCoins(hash, coins) get failure too, this tx's coin is not in CCoinsViewCache.

because this tx is in block 0, so I modify source code as below:

--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1002,7 +1002,7 @@ bool GetTransaction(const uint256 &hash, CTransaction &txOut, uint256 &hashBlock
                 if (view.GetCoins(hash, coins))
                     nHeight = coins.nHeight;
             }
-            if (nHeight > 0)
+            if (nHeight >= 0)
                 pindexSlow = FindBlockByHeight(nHeight);
         }
     }

rebuild it and run, still not work.

Write tx index code is in function CBlock::ConnectBlock:

bool CBlock::ConnectBlock(CValidationState &state, CBlockIndex* pindex, CCoinsViewCache &view, bool fJustCheck) {
...
    if (fTxIndex)
        if (!pblocktree->WriteTxIndex(vPos))
            return state.Abort(_("Failed to write transaction index"));
...
}

maybe forget to ConnectBlock 'GenesisBlock', so I try bitcoind -loadblock="~/Library/Application\ Support/Bitcoin/blocks/blk00000.dat", and it works:

$ bitcoind getrawtransaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b 1
{
    "hex" : "01000000010000000000000000000000000000000000000000000000000000000000000000fffff fff4d04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c 6c6f72206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b7 3ffffffff0100f2052a01000000434104678afdb0fe5548271967f1a67130b7105cd6a828e03909 a67962e0ea1f61deb649f6bc3f4cef38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11 d5fac00000000",
    "txid" : "4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b",
    "version" : 1,
    "locktime" : 0,
    "vin" : [
        {
            "coinbase" : "04ffff001d0104455468652054696d65732030332f4a616e2f32303039204368616e63656c6c6f7 2206f6e206272696e6b206f66207365636f6e64206261696c6f757420666f722062616e6b73",
            "sequence" : 4294967295
        }
    ],
    "vout" : [
        {
            "value" : 50.00000000,
            "n" : 0,
            "scriptPubKey" : {
                "asm" : "04678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4cef3 8c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5f OP_CHECKSIG",
                "hex" : "4104678afdb0fe5548271967f1a67130b7105cd6a828e03909a67962e0ea1f61deb649f6bc3f4ce f38c4f35504e51ec112de5c384df7ba0b8d578a4c702b6bf11d5fac",
                "reqSigs" : 1,
                "type" : "pubkey",
                "addresses" : [
                    "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
                ]
            }
        }
    ],
    "blockhash" : "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
    "confirmations" : 238323,
    "time" : 1231006505,
    "blocktime" : 1231006505
}


but after I restart bitcoind, it does not work anymore.
39  Bitcoin / Development & Technical Discussion / Re: can't find some transaction in my bitcoind on: May 28, 2013, 06:57:29 AM
Nope but by default "getrawtransaction" will not allow you to access tx's that do not involve your own addresses (http://bitcoin.stackexchange.com/questions/9147/getrawtransaction-error-code-5 for details and how to fix this).

Getrawtransaction queries the blockchain, not your wallet. Whether the transaction is in your wallet is irrelevant; without txindex=1, it only works for unspent transactions (slowly). With txindex=1, it will work for any transaction.

I have run bitcoind -txindex=1 -reindex=1 first, than bitcoind -txindex=1 --daemon. But still can't find this transaction:

$ bitcoind getrawtransaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b 1
error: {"code":-5,"message":"No information available about transaction"}

This transactino is in block 0. See: http://blockexplorer.com/tx/4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b.

Should I remove all data and start with a empty bitcoind to get all transaction?
40  Bitcoin / Development & Technical Discussion / Re: can't find some transaction in my bitcoind on: May 26, 2013, 05:20:06 AM
tx id: 85966ed46764440edf4fa73ee95c628d5a92b45824ae957a04aa889803df0fc9

can't find it in my bitcoind:

$ bitcoind getrawtransaction 85966ed46764440edf4fa73ee95c628d5a92b45824ae957a04aa889803df0fc9 1
error: {"code":-5,"message":"No information available about transaction"}

It is exist on blockchain: https://blockchain.info/tx/85966ed46764440edf4fa73ee95c628d5a92b45824ae957a04aa889803df0fc9

This tx's input address is: 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp (SatoshiDICE 48%), is this the reason why it is not in my bitcoind?

Are either of the output addresses part of your wallet?
Nope. I used cmd "bitcoind getrawtransaction" and got some txs that not belong to my wallet.

Is there any filters in bitcoind that fileter out transactions which came from SatoshiDICE's address?
Pages: « 1 [2] 3 4 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!