All Questions

Filter by
Sorted by
Tagged with
2
votes
1answer
206 views

Geth bug when working with address arrays?

I have the following contract that handles address arrays: contract C { address[] goodAddr; address[] badAddr; function initAddr() constant { if(goodAddr.length == 0) { ...
1
vote
1answer
331 views

ETC Split to non-hf wallet - lost?

I think I may have lost all of my ETC. Following Vitalik's instructions laid out here: https://blog.ethereum.org/2016/07/26/onward_from_the_hard_fork/ I created 2 new wallets on the same wallet ...
6
votes
1answer
765 views

How are solidity integer overflows handled?

uint8 x = 255; x += 10; Is x going to be 0 or 9?
2
votes
1answer
86 views

How to automaticlly find the contract?

I created a private network using go-ethereum with 2 clien which are VMs(ubuntu 14.04). On VM1, I created a contract: N1greeterSource ='contract mortal { address owner; function mortal() { owner = ...
4
votes
1answer
577 views

Understanding TokenCreator/OwnedToken example from Solidity documentation

Here's the page containing the example https://solidity.readthedocs.io Here are two contracts that are supposed to work together(my questions are below): Here's how I think it works. Please correct ...
4
votes
1answer
166 views

Are transactions on one chain automatically broadcasted to other chains?

I know how to split but I'd like to know if, technically, all transactions on the Ethereum chain are automatically broadcasted on the "Ethereum Classic" chain and vice-versa or if replay "attacks" ...
4
votes
1answer
162 views

Problem after withdrawal non hard fork ethereum

I have a problem, I successfully withdraw some ETC but when I tried another time to withdraw the rest I think I put in more ETC and I didn't receive anything and now when I try again to withdraw any ...
2
votes
1answer
382 views

Question about ETH and contract creation

I have a noob question about contract creation. I'm following this tutorial: https://www.ethereum.org/dao However there's a step in there that I don't quite understand. After I enter the contract code,...
-1
votes
1answer
103 views

I am having an issue contacting another contract from my first one

First an example, then the contract code: (it's about 200 lines all of which are kinda needed.) To explain it, this is a PoC for a special use case, the tokensHolder contract basically contains the ...
8
votes
4answers
5k views

Get raw transaction from hash

I wonder if there is an equivalent to bitcoind's getrawtransaction, i.e., a command to dump a raw transaction in hex format, given its hash id. I am working preferably in geth.
3
votes
2answers
2k views

Is it possible to send ETH to a wallet that doesn't exist?

If so what happens? Is it permanently lost?
1
vote
1answer
1k views

How can I get contract public values with nethereum as the wallet does?

I'm fiddling around with this tutorial. After deploying and setting up the contract within the page, I created a proposal from the ethereum wallet which I could see after a few blocks. The read from ...
6
votes
1answer
623 views

Post the DAO-fork, is there a double-spending problem?

If an account had ETH before the DAO-fork does the ETH now not exist on both the ETH and the ETC chains? A Poloniex notice says "All users who had an Ethereum balance at the moment of the fork now ...
12
votes
5answers
10k views

Can I write and deploy smart contracts in Java language?

I am a Java developer. I want to write a smart contract using Java and deploy it to a private blockchain network. Does Ethereum provide the facility to write smart contracts using Java language? If ...
1
vote
1answer
637 views

Get latest transaction hashes from inside a contract

I am working on private test net. Can I get the latest transaction address inside my contract. At the basic level I am trying to have a function getLatestTransaction() which will return me the latest ...
1
vote
1answer
1k views

Not able to add peers on geth private testnet

I have built geth from source code. Everything is fine but, when I am running a different node on same system and try to add a peer to the first one with the admin.addPeer method, the method is ...
1
vote
2answers
1k views

Connect Mist to ethereum-js testrpc

I need to test a DAPP which will run in Mist, but I don't want to run it in TestNet or MainNet, I want to run it in a ethereum-js testrpc instance. Is it possible to do that? Does anybody has tried ...
2
votes
1answer
272 views

How to let Dapp connect to network from Mist browser (ver 0.8) without starting geth with rpc options manually?

After Mist 0.8, I made the following change on my Dapp so that it uses existing web3 connection if connected via Mist. https://github.com/makoto/blockparty/commit/...
3
votes
2answers
2k views

How can I split my ETH and ETC if I have an account that made a transaction with the WithdrawDAO contract?

Let's say: I own account A, which had a 100 ETH pre-DAO balance. Pre-fork I sent 50 ETH from A -> DAO. Post-fork I had 50 ETHF and 50 ETHC in A. Post-fork I made a transaction with the WithdrawDAO ...
3
votes
3answers
1k views

I own Ether, should I also own Ether Classic (are they one in the same)?

I own Ether, should I also own Ether Classic (are they one in the same)? If I own 100 Ether and believe in the technology behind it, and have owned them for 6 months or so, do I need to purchase ...
4
votes
1answer
1k views

Syncing slow to a crawl (2048 blocks in 2 hours)

I had no issues before, but my syncing has gotten incredibly slow with geth. My system time and date are good (set by ntp) so that shouldn't be the issue and my Internet connexion works fine. It took ...
1
vote
1answer
526 views

Can't see my Ether in mist wallet

I withdrew Eth from Poloniex to "Account 1" in my Mist Wallet. The transaction shows it being received: https://www.etherchain.org/tx/0x4cfb836eb7a2f870c8d7e60dffec6ede16693a416fc394a8242557f8897223c6 ...
2
votes
1answer
1k views

ETH vs ETC on Dwarfpool and Poloniex?

Noob miner here, Does anyone mining on Dwarfpool know if they have updated to the forked code (ETH), or are we still mining Ethereum classic (ETC)? I currently use Poloniex as my intermediary wallet ...
10
votes
2answers
3k views

Large contract (bytecode >= 45K) causes out-of-gas on deploy

I need some advice about handling a large contract. At a certain size it causes an out-of-gas error when I deploy to a local testrpc node. I experience this when the bytecode reaches approximately 45K....
3
votes
1answer
1k views

How does (current block number - block number of a given transaction) gives the confirmation count?

I found a discussion here How do I get the number of confirmations on a transaction in geth or any other tool? that give the solution as: web3.eth.blockNumber-web3.eth.getTransaction(<txhash>)....
2
votes
1answer
89 views

What sort of malware is this? Is my wallet compromised?

Received a malware type desktop notification (not web) that had my address on there. Is my wallet compromised? Should I change wallets? I was using mist wallet.
4
votes
1answer
128 views

How many transactions get automatically replayed on both sides of the fork? [closed]

There is a lot of talk about possibility of replay attack, but I suspect (and I've seen it claimed) that many (perhaps most or even all) transactions that users issue on one of the chains get replayed ...
1
vote
0answers
59 views

Cannot vote on private chain. using dao tutorial

I'm trying to do a little extra with the ethereum dao tutorial on a private chain with several nodes having different etherbases. What I did is as follows, I created the contract, sent it some ...
4
votes
2answers
388 views

What if a dishonest node execute a different program on EVM?

I want to create a program (on the Ethereum Virtual Machine), that can access some data under certains condition (only if authorized). So the program checks the authorization, and then (eventually) ...
1
vote
0answers
219 views

Can a ethereum smart contract look up the current dollar/ether exchange rate and then change its behaviour depending on it?? and how? [duplicate]

can a contract on blockchain get outside data like "current dollar/ether exchange rate" using api like call?? If yes, how can it be done? and is there any technique to control the behaviour of the ...
1
vote
3answers
433 views

Synchronisation failed on private ethereum network

I created a private network using go-ethereum with 2 clien which are VMs(ubuntu 14.04). On VM1 (IP:192.168.217.131):,my command to create private network: ./geth --genesis private.json --port "...
5
votes
1answer
207 views

Help needed - Contract is deployed but execution of method always returns Zero

I have created a private blockchain and trying to create a sample contract given in https://github.com/ethereum/go-ethereum/wiki/Contracts-and-Transactions I could create, compile and even deploy the ...
7
votes
1answer
1k views

Event result parameters and arguments in console

I read about using events from this source http://solidity.readthedocs.io/en/latest/contracts.html#events I used a simple multiply contract: contract test1{ uint a; event event_res(string msg,...
3
votes
2answers
397 views

RLP encoding of 0

According to the docs here, For a single byte whose value is in the [0x00, 0x7f] range, that byte is its own RLP encoding I ran the following using pyrlp (similar to the code in pyethereum here):...
1
vote
1answer
421 views

How to watch for a transaction send by Node A from another Node B?

What I am struggling to achieve is the following: Node A sends a transaction. Node B starts watching for this transaction. When Node B sees the transaction in the latest block (ie not as a pending ...
1
vote
1answer
1k views

When is a transaction callback called?

Is the callback of a myContractMethod.sendTransaction(/* ... */) called as soon as the the transaction is sent to the network or once it is mined? Related posts Here are some related references I ...
1
vote
0answers
168 views

Convert DAO tokens to ether in ethereum wallet [duplicate]

I have DAO tokens which I can see on THE DAO account balance page. I'm hoping someone can explain in a step by step procedure how to take my tokens, convert and change them into effect her and deposit ...
1
vote
0answers
57 views

What do the progress bars on the Alethzero “blockchain download” window mean?

I'm exploring Alethzero. What do the progress bars in the "blockchain download" window mean? I'm seeing this: I'm assuming this relates to the progress in dowloading the blockchain but I can't work ...
3
votes
1answer
842 views

ethereum ledger size

I don't understand quit well what are the requirements on the disk volume to run a full node of ethereum and what is its expected growth. e.g. for now I have the following volume distribution across ...
15
votes
2answers
5k views

How to conditionally send ethers to another account post-hard-fork to protect yourself from replay attacks

The DAO contract was attacked on 17th June 2016 where the attacker drained about USD 50 million worth of ethers using a recursive call vulnerability in The DAO contract code. The attacker drained ...
2
votes
1answer
765 views

Ethereum Hard Fork: what happened to legacy Ether?

I currently run Forked Ethereum via Parity. I'm assuming my Ether from before the fork is available on this chain. However, does it also still exist on the Ethereum Classic chain? I tried researching ...
7
votes
3answers
3k views

How to setup parity daemon

I know parity can run as a daemon because the --help has a usage parity daemon <pid-file> [options] but no further help/clues/documentation is provided. What is <pid-file> ? A process ID ...
1
vote
2answers
1k views

Which accounts contributed to The DAO's extraBalance account?

Anyone who bought DAOs in the last two weeks of The DAO crowdfunding phase paid more than 1 ether (ETH) per 100 The DAO tokens (DAO). The ETH amount in excess of 1 ETH per 100 DAOs was stored in The ...
2
votes
1answer
1k views

Difference between the balance of Etherscan and wallet ethereum [closed]

I have a problem , there is a discrepancy between Etherscan and my wallet.. https://etherscan.io/address/0x9Bd1fA1B8C1D1cED42579813A7A73B30e4078E9C https://nanopool.org/account/...
2
votes
1answer
204 views

Function Declaration “Returns”

Within the Solidity Docs it's pretty much implied from various bits of example code that a function declaration needs a returns declaration to return an object, but doesn't seem to be actually ...
8
votes
1answer
4k views

Rationale behind 256-bit words in EVM

What were the design factors driving having EVM native words as 256-bit? It feels excessive, especially if one needs to process as large data set as blockchain.
3
votes
1answer
260 views

Unable to resolve all static JUMP destinations while disassembling ethereum vm bytecode

For educational purpose I've created a simple python based evm bytecode disassembler (see github::ethereum-dasm) that attempts to resolve static jumps (JUMP,JUMPI instructions) in order to make the ...
3
votes
1answer
542 views

Understanding SimpleStorage example from Solidity documentation

Just started learning solidity from https://solidity.readthedocs.io. Here's the code I'm trying to understand: My questions: Why does get() function has constant keyword? Is it neccessary to put ...
1
vote
2answers
333 views

Create a contract at a defined address?

Is it possible to define a smart contract at a predictable address? 0xf0 CREATE in the Yellow Paper suggests that the address is deterministically determined by x = A(Ia, σ[Ia]n) page 29 of http://...
1
vote
0answers
65 views

Why is creating a uint8 more expensive than a uint256? [duplicate]

Assume a contract: contract A { function b() constant returns (uint8 result) { result =1; } } When I replace uint8 result with uint256 result then the creation of the contract gets ...

15 30 50 per page
1
529 530
531
532 533
581