Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:51
    zsfelfoldi synchronize #21676
  • 14:22
    zsfelfoldi synchronize #21676
  • 05:31
  • Oct 30 23:24
    fxfactorial commented #21738
  • Oct 30 23:23
    fxfactorial commented #21754
  • Oct 30 23:14
    Travis ethersocialcoin/go-esc (develop) still failing (992)
  • Oct 30 22:59
    pawanjay176 opened #21770
  • Oct 30 20:19
    fxfactorial opened #21769
  • Oct 30 17:36
    gballet opened #21768
  • Oct 30 17:32
    gballet closed #21725
  • Oct 30 17:32
    gballet commented #21725
  • Oct 30 17:29
    gballet synchronize #21725
  • Oct 30 17:04

    fjl on master

    les, p2p/simulations/adapters: … (compare)

  • Oct 30 17:04
    fjl closed #21761
  • Oct 30 17:02
    fjl edited #21761
  • Oct 30 17:02
    fjl edited #21761
  • Oct 30 16:39
    MariusVanDerWijden review_requested #21356
  • Oct 30 14:57
    gottabpro opened #21767
  • Oct 30 14:22
    lightclient commented #21502
  • Oct 30 10:00
    Incrediblez7 commented #15616
Péter Szilágyi
@karalabe
the only meaningful way is to use the Geth codebase as a library and write an arbitrary tool to fetch the data for yourself. It's not too hard, but you do need to know how to develop Go code and have at least some understanding of the Geth code. The database structure contents is organized in completely custom schemas and even changes from time to time.
The address of a contract is the Keccak256 hash of <creator address> || <transaction nonce>
it's part of the protocol, noone creates it, rather everyone agrees what it will be based on the transaction contents
a smart contract doesn't have an address... rather an address may have code associated with it
the code is stored inside the database with other stuff belonging to the account (e.g. balance, nonce, data storage)
Péter Szilágyi
@karalabe
if you're really interested in the gory details, the state database is a merkle-particia trie. Essentially a key-value datastore based on fancy hashes. To retrieve the code of a specific account you'd need to first retrieve the account associated with a particular address and then retrieve the code associated with that account.
Sammy Libre
@sammy007
Testnet block explorer is what eth is missing
Péter Szilágyi
@karalabe
Sammy Libre
@sammy007
oh
Péter Szilágyi
@karalabe
@elegantcube
package main

import (
    "fmt"

    "github.com/ethereum/go-ethereum/common"
    "github.com/ethereum/go-ethereum/core"
    "github.com/ethereum/go-ethereum/ethdb"
    "github.com/ethereum/go-ethereum/event"
)

func main() {
    db, err := ethdb.NewLDBDatabase("/home/karalabe/.ethereum/chaindata", 0, 0)
    if err != nil {
        panic(err)
    }
    bc, err := core.NewBlockChain(db, nil, core.FakePow{}, new(event.TypeMux))
    if err != nil {
        panic(err)
    }
    sdb, err := bc.State()
    if err != nil {
        panic(err)
    }
    code := sdb.GetCode(common.HexToAddress("0xf9214ca8e9ab8f906575bba4c1d8ba05a065cde1"))
    fmt.Printf("%x\n", code)
}
3660008037602060003660003473273930d21e01ee25e4c219b63259d214872220a261235a5a03f21560015760206000f3
Same as reported by
elegantcube
@elegantcube
@karalabe thanks man, thats great detail
elegantcube
@elegantcube
what does mapping(address => mapping(address => uint256)) allowed; mean
This message was deleted
@elegantcube is it that address1 is referring to address 2, which inturn is carrying a value-allowed?
Nick Johnson
@Arachnid
@elegantcube It's a mapping from pairs of addresses to uints
allowed[from][to] is a uint
anodirium
@anodirium
hey guys
anyone here?
Stephen
@stephenstroud
hi
anodirium
@anodirium
hey im a bit new to all this
any chance you can give me a bit of guidance? ))
Stephen
@stephenstroud
anyone had the issue where the miner isn't submitting data?
@anodirium hey I just setup myself
@anodirium can try to help too
anodirium
@anodirium
im trying to start etehrium wallet and application starts but just blank
any clues?
no interface like nothing
it says starting etherium node
and then nothing
Stephen
@stephenstroud
nah I haven't been using the wallet, just the command like
anodirium
@anodirium
what am i doing wrong
Stephen
@stephenstroud
what OS you on?
anodirium
@anodirium
win 7
Stephen
@stephenstroud
you download from the official source?
anodirium
@anodirium
yep
etheruem org
anodirium
@anodirium
ye thats the one
current beta
what is it supposed to do?
besides just sitting with blank window
))
Micah Zoltu
@MicahZoltu
blob
Stephen
@stephenstroud
hmm i had downloaded to try it out before, I remember seeing it had the list of wallets etc with balances
Micah Zoltu
@MicahZoltu
You should see a window like this at first.
anodirium
@anodirium
yep