bitcoinjs/node-bitcoin-explorer — Issue #4: Error in block 30300: "BitcoinKey does not have a public key set"
Author: jdnavarro
Created: 2011-11-20 20:04:46+00:00
State: open

When I run the tests I get this error:

```
Script with OP_CHECKMULTISIG_6
✗ executes correctly
» An unexpected error was caught: Error: BitcoinKey does not have a public key set
at /home/danny/sandbox/node-bitcoin-p2p/lib/scriptinterpreter.js:868:7
at ScriptInterpreter.checkMultiSigStep (/home/danny/sandbox/node-bitcoin-p2p/lib/scriptinterpreter.js:652:17)
at ScriptInterpreter.executeStep (/home/danny/sandbox/node-bitcoin-p2p/lib/scriptinterpreter.js:624:27)
at Array.0 (native)
at EventEmitter._tickCallback (node.js:192:40)
✗ is valid
» An unexpected error was caught: Error: BitcoinKey does not have a public key set
at /home/danny/sandbox/node-bitcoin-p2p/lib/scriptinterpreter.js:868:7
at ScriptInterpreter.checkMultiSigStep (/home/danny/sandbox/node-bitcoin-p2p/lib/scriptinterpreter.js:652:17)
at ScriptInterpreter.executeStep (/home/danny/sandbox/node-bitcoin-p2p/lib/scriptinterpreter.js:624:27)
at Array.0 (native)
at EventEmitter._tickCallback (node.js:192:40)
```

I also get this error in the same block (30300) when building the database from testnet or livenet:

```

20 Nov 20:59:01 - info: Downloading blocks 30300/42204 (top: 5930292bfa, queued: 0, peer: 109.75.176.92:18333)
20 Nov 20:59:03 - bchdbg: Adding block 000000000028f3e1d745
20 Nov 20:59:03 - error: Error while adding block to chain: Error: BitcoinKey does not have a public key set
at /home/danny/sandbox/node-bitcoin-p2p/lib/scriptinterpreter.js:868:7
at ScriptInterpreter.checkMultiSigStep (/home/danny/sandbox/node-bitcoin-p2p/lib/scriptinterpreter.js:652:17)
at ScriptInterpreter.executeStep (/home/danny/sandbox/node-bitcoin-p2p/lib/scriptinterpreter.js:624:27)
at Array.0 (native)
at EventEmitter._tickCallback (node.js:192:40)
...
```

Any hints about how to debug it? I've tried to debug it with node-inspector but couldn't find a way it stop in the test that breaks.