I synchronized my ethereum node using the command
geth --syncmode "fast"
Now I wanted to access a smart contract, e.g. the one of OmiseGO. Unfortunately this is not found. I tried web3 and also a WebGUI etherparty/explorer. Both didn't find anything. No contract address at all. However it found the corresponding transaction, that created the smart contract.
For web3 I used the following code:
var code = web3.eth.getCode('0xd26114cd6EE289AccF82350c8d8487fedB8A0C07');
The code was always 0x which represents that the contract is not present.
Is it because of the syncmode fast that these kind of things are not stored?
eth.blockNumber
return? What version of geth are you using?