Most Popular
1500 questions
10
votes
1 answer
Geth Gas price too low for acceptance
Why is geth not letting me post a transaction with a low gasPrice?
> ./geth console
> eth.sendTransaction({ "from": "...", "to": "...", "gas": "30000", "gasPrice": "10", "value": "0.1" })
Gas price too low for acceptance
My understanding of…
Micah Zoltu
- 945
- 2
- 8
- 21
10
votes
1 answer
Will it ever be possible to group multiple ERC20 tokens into a single transaction?
Specifically, if I wanted to send multiple different tokens to a smart contract, but it was important to the contracts function that all tokens arrive at the same time, could I put;
20 Token A
45 Token B
7.5 Token C
in a single transaction, or…
PaddyLosty
- 183
- 1
- 5
10
votes
1 answer
Bad jump array solidity and data location
I'm having a strange issues with an array inside a struct. I will copy you the example code, so that you can understand:
Foo[] public foos;
struct Foo {
uint fooX;
uint[] fooArray;
}
function insertionSort(uint[] a)internal {
…
user697
- 2,176
- 3
- 15
- 19
10
votes
3 answers
Is there an UserDefined Language of solidity for notepad++ available?
Is there an UserDefined Language of solidity for notepad++ available? If so does anyone can share a link?
Olivier Rikken
- 366
- 4
- 12
10
votes
3 answers
Mining solution found
I've just started mining with a gtx 1070, and following a guide on the web I've set everything up, using a pool (nanopool).
Watching the result of the mining program I noticed alread 3 times that I found a solution, here is the screenshot:
So that…
thestral
- 125
- 1
- 5
10
votes
1 answer
How many trie's does Ethereum have?
Did I miss any trie below and get things right?
Transaction tries, one per block, root hash included in the block header
Transaction receipt tries, one per block, root hash included in the block header
Storage tries, one per account, root hashes…
Randomblue
- 2,610
- 2
- 17
- 38
10
votes
2 answers
If all nodes execute smart contracts, why do only block creators get the gas fee?
I have a question regarding smart contract execution.
It is my understanding that when a user requests a smart contract, miners will execute the smart contract, and bundle its output in a block before broadcasting to the network.
But then all other…
Globuous
- 103
- 1
- 5
10
votes
2 answers
Solidity: Timestamp dependency, is it possible to do safely?
My contract depends on checking to see if an expiration period has expired before sending the contracts balance. I was looking at the ConsenSys best practices here and it says:
Timestamp Dependence
Be aware that the timestamp of the block can be…
Daniel Kobe
- 1,581
- 2
- 14
- 14
10
votes
1 answer
What happens if you call a non-existent function of another contract that has no fallback function in Solidity?
Let's say you call a function at another contract in Solidity:
contractB.doFunction()
It would then match it using the function signature to run the function in contractB. If there's not match, it would run the fallback function.
But if neither…
Simon de la Rouviere
- 1,224
- 10
- 18
10
votes
1 answer
how can I run a truffle test in a debugger?
as a developer I want to run my javascript test in a debugger so as to be able to step through tests and inspect the values of variables.
The goal is to run it in a Mocha debug mode
Micha Roon
- 2,203
- 21
- 36
10
votes
1 answer
PHP Library for Ethereum
I am looking for a PHP library to interact with Ethereum. Are there any active open source projects of PHP libraries for Ethereum available?
Thanks for your help
Bumblebee
- 1,751
- 3
- 14
- 23
10
votes
4 answers
How to increase gas limit in block using geth?
When I try to execute methods from my smart-contract, I get limited by the gas limit in a block and can't do anything.
How to change the gas limit in the block?
Andrei Zolin
- 185
- 1
- 1
- 9
10
votes
2 answers
Accessing a public mapping within a contract from a different contract
Consider the case where I want to get the elements of a struct via a public mapping from product contract to price contract:
contract Product{
struct prod{
string name;
uint id;
bool status;
}
…
skarred14
- 945
- 1
- 9
- 18
10
votes
2 answers
What is a function signature and function selector in solidity (and EVM languages)?
I've heard the term "function signature" as well as "function selector", what are they? What are they for?
Patrick Collins
- 11,186
- 5
- 44
- 97
10
votes
4 answers
What are the scalability benefits of PoS vs PoW?
This accepted answer claims that one advantage of PoS vs PoW is that
some scalability problems can be addressed more easily with PoS
What are those scalability problems? What are the scalability benefits of PoS vs PoW?
Randomblue
- 2,610
- 2
- 17
- 38