Ricardo Catalinas Jiménez
3d971c5a34
crypto: Remove dead code
2016-02-21 22:46:31 +00:00
Ricardo Catalinas Jiménez
0c6665558a
crypto: Add backward compatible aliases for Sha3{,Hash}()
2016-02-21 22:46:31 +00:00
Ricardo Catalinas Jiménez
436fc8d76a
all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}()
...
As we aren't really using the standarized SHA-3
2016-02-21 22:34:34 +00:00
Ricardo Catalinas Jiménez
c20d6e5e4e
crypto/sha3: Export Keccak-256 hash function
...
This hash function is slightly different from the standarized NIST SHA-3
as both of them use different domain separation bits.
2016-02-21 22:34:34 +00:00
Ricardo Catalinas Jiménez
5387ad760f
crypto/sha3: Remove import path checking from vendored code
2016-02-21 22:34:34 +00:00
Ricardo Catalinas Jiménez
e4b138a593
crypto/sha3: Copy latest code from "golang.org/x/crypto/sha3"
...
Revision: 1f22c0103821b9390939b6776727195525381532
2016-02-21 22:34:34 +00:00
Ricardo Catalinas Jiménez
0a1da69fac
crypto/sha3: Delete old copied code
2016-02-21 22:34:34 +00:00
Jeffrey Wilcke
f8d98f7fcd
Merge pull request #2116 from obscuren/homestead
...
core, core/vm: consensus changes necessary for the homestead release
2016-02-19 14:41:57 +01:00
Felix Lange
c305005d83
Merge pull request #2227 from bas-vk/mathrandom
...
console: seed random number generator
2016-02-19 13:17:10 +01:00
Bas van Kervel
6777531a2d
console: seed random number generator
2016-02-19 12:55:31 +01:00
Jeffrey Wilcke
17649edd85
Merge pull request #2226 from fjl/eip-8
...
p2p, p2p/discover: EIP-8 changes
2016-02-19 11:53:50 +01:00
Felix Lange
7d8155714b
p2p: EIP-8 changes
2016-02-19 11:14:48 +01:00
Felix Lange
ee1debda53
p2p/discover: EIP-8 changes
2016-02-19 11:14:42 +01:00
Felix Lange
bb07ce3eed
rlp: add "tail" struct tag
2016-02-19 11:14:29 +01:00
Jeffrey Wilcke
5b283663b4
core: Added new TD strategy which mitigate the risk for selfish mining
...
Assuming the following scenario where a miner has 15% of all hashing
power and the ability to exert a moderate control over the network to
the point where if the attacker sees a message A, it can't stop A from
propagating, but what it **can** do is send a message B and ensure that
most nodes see B before A. The attacker can then selfish mine and
augment selfish mining strategy by giving his own blocks an advantage.
This change makes the time at which a block is received less relevant
and so the level of control an attacker has over the network no longer
makes a difference.
This change changes the current td algorithm `B_td > C_td` to the new
algorithm `B_td > C_td || B_td == C_td && rnd < 0.5`.
2016-02-18 10:12:13 +01:00
Jeffrey Wilcke
b6d88a0e9f
core, core/vm, crypto: fixes for homestead
...
* Removed some strange code that didn't apply state reverting properly
* Refactored code setting from vm & state transition to the executioner
* Updated tests
2016-02-18 10:11:48 +01:00
Jeffrey Wilcke
4f4d2b6474
tests: updated homestead tests
2016-02-18 10:08:18 +01:00
Gustav Simonsson
371871d685
parmas, crypto, core, core/vm: homestead consensus protocol changes
...
* change gas cost for contract creating txs
* invalidate signature with s value greater than secp256k1 N / 2
* OOG contract creation if not enough gas to store code
* new difficulty adjustment algorithm
* new DELEGATECALL op code
2016-02-18 10:08:11 +01:00
Jeffrey Wilcke
aa36a6ae4f
Merge pull request #2206 from fjl/update-deps
...
Godeps: update all dependencies
2016-02-17 13:46:30 +01:00
Felix Lange
6ba7bbbe29
jsre: include constructor properties in auto-completion
2016-02-15 16:43:25 +01:00
Felix Lange
ae5bc89cad
cmd/geth, jsre: improve auto-completion
2016-02-15 15:03:26 +01:00
Jeffrey Wilcke
4f28c5b69d
Merge pull request #2210 from obscuren/abi-typed-array
...
accounts/abi: support for typed array
2016-02-14 19:13:48 +01:00
Jeffrey Wilcke
6fe917ecb8
accounts/abi: support for typed array
...
Added support for fixed size and arbitrary length byte arrays to be
marshallable in fixed size (typed) byte slices.
2016-02-14 18:56:56 +01:00
Péter Szilágyi
cb85923828
Merge pull request #2205 from obscuren/pending-filters
...
eth/filters: ✨ pending logs ✨
2016-02-13 14:53:59 +02:00
Péter Szilágyi
770b29fd80
Merge pull request #2175 from karalabe/refactor-http-rpc
...
cmd, common, node, rpc: move HTTP RPC into node, drop singleton aspect
2016-02-13 14:53:48 +02:00
Jeffrey Wilcke
987c1a595a
eth/filters: ✨ pending logs ✨
...
Pending logs are now filterable through the Go API. Filter API changed
such that each filter type has it's own bucket and adding filter
explicitly requires you specify the bucket to put it in.
2016-02-13 13:14:02 +01:00
Felix Lange
fdb936ee95
crypto/ecies: make authenticated shared data work
...
The s2 parameter was not actually written to the MAC.
2016-02-12 09:49:18 +01:00
Felix Lange
2abf1a36b9
cmd/geth: enable multi-line mode
...
This was requested by some users earlier but liner didn't support
it at the time. It does now.
2016-02-12 02:41:29 +01:00
Felix Lange
4063d30b5e
cmd/geth: gofmt js.go and rename ethereum.js to web3.js
...
Fixing the filename matters now because it will actually show
up in JS backtraces.
2016-02-12 02:20:18 +01:00
Felix Lange
2680e23b15
jsre: fix pretty printer for upstream otto change
2016-02-12 02:19:52 +01:00
Péter Szilágyi
d6c6bcc9f3
cmd/geth: update monitor to new termui code
2016-02-11 16:46:28 +02:00
Péter Szilágyi
b019f3ee29
Godeps: update all dependencies to latest code
2016-02-11 16:16:52 +02:00
Jeffrey Wilcke
b05e472c07
Merge pull request #2192 from obscuren/runtime-abi-fixes
...
account/abi, vm/runtime: abi fixes & simplified runtime calling mechanism
2016-02-11 11:44:01 +01:00
Jeffrey Wilcke
6cace73bea
core/vm/runtime: simplified runtime calling mechanism
...
Implemented `runtime.Call` which uses - unlike Execute - the given state
for the execution and the address of the contract you wish to execute.
Unlike `Execute`, `Call` requires a config.
2016-02-11 10:17:16 +01:00
Jeffrey Wilcke
ecc876cec0
accounts/abi: fixed return tuple and string, bytes return type parsing
...
Removed old unmarshalling of return types: `abi.Call(...).([]byte)`.
This is now replaced by a new syntax:
```
var a []byte
err := abi.Call(&a, ...)
```
It also addresses a few issues with Bytes and Strings and can also
handle both fixed and arbitrary sized byte slices, including strings.
2016-02-11 10:16:38 +01:00
Péter Szilágyi
537774e049
Merge pull request #2195 from obscuren/gpo-rpc
...
eth: Added GPO to suggest default gas prices
2016-02-11 10:36:37 +02:00
Péter Szilágyi
1cc4bd76db
Merge pull request #2193 from karalabe/sync-state-reports
...
eth, eth/downloader, jsre: surface state sync progress through the API
2016-02-10 20:20:59 +02:00
Jeffrey Wilcke
725f2a4cf7
eth: Added GPO to suggest default gas prices
...
This PR fixes a regression of the RPC where the default gas price that
was being used for transaction wasn't properly using the GPO. This PR
adds the GPO back to suggest gas prices rather than the hardcoded
default of 10000000000000.
Closes #2194
2016-02-10 16:50:50 +01:00
Péter Szilágyi
59cd60b266
eth, eth/downloader, jsre: surface state sync progress through the API
2016-02-10 14:30:41 +02:00
Péter Szilágyi
be79b4aacb
Merge pull request #2189 from karalabe/fix-nil-miner
...
eth, miner: move the public miner api into eth to access etherbase
2016-02-09 16:38:00 +02:00
Péter Szilágyi
dda5af0e6c
eth, miner: move the public miner api into eth to access etherbase
2016-02-09 16:03:04 +02:00
Péter Szilágyi
df75dbfd68
cmd, node, rpc: readd inproc RPC client, expose via node
2016-02-09 14:10:40 +02:00
Péter Szilágyi
900e124bee
cmd, common, node, rpc: rework naming convention to canonical one
2016-02-09 13:24:42 +02:00
Péter Szilágyi
8b5b635db7
Merge pull request #2184 from karalabe/fix-fastsync-state-serializer-bug
...
eth/downloader: raise pending state limit that prevented concurrency
2016-02-09 12:14:48 +02:00
Péter Szilágyi
f1ec226d80
eth/downloader: raise pending state limit that prevented concurrency
2016-02-08 14:57:02 +02:00
Péter Szilágyi
856b9e9c50
Merge pull request #2183 from bas-vk/issue2180
...
eth_sendTransaction, error not reported
2016-02-08 12:41:39 +02:00
Bas van Kervel
5fb68f4b39
eth: sendTransaction would not report the error when tx could not be added to tx pool
2016-02-08 11:11:07 +01:00
Jeffrey Wilcke
707ac67bab
Merge pull request #2106 from obscuren/out-of-bound-logs
...
eth/filters: added notifications for out of bound log events
2016-02-06 01:11:42 +01:00
Jeffrey Wilcke
68dda34905
eth/filters: added notifications for out of bound log events
...
Out of Bound log events are events that were removed due to a fork. When
logs are received the filtering mechanism should check for the `removed`
field on the json structure.
2016-02-05 16:55:27 +01:00
Péter Szilágyi
7486904b92
cmd, node, rpc: move websockets into node, break singleton
2016-02-05 16:53:47 +02:00