Jeffrey Wilcke
e0dc45fce2
accounts/abi: fixed strict go-like unpacking
9 years ago
Jeffrey Wilcke
5127ec10cb
accouns/abi: refactored ABI package
...
Refactored the abi package parsing and type handling. Relying mostly on
package reflect as opposed to most of our own type reflection. Our own
type reflection is still used however for cases such as Bytes and
FixedBytes (abi: bytes•).
This also inclused several fixes for slice handling of arbitrary and
fixed size for all supported types.
This also further removes implicit type casting such as assigning,
for example `[2]T{} = []T{1}` will fail, however `[2]T{} == []T{1, 2}`
(notice assigning *slice* to fixed size *array*). Assigning arrays to
slices will always succeed if they are of the same element type.
Incidentally also fixes #2379
9 years ago
Jeffrey Wilcke
18580e152c
VERSION, cmd/geth: bumped version
9 years ago
Péter Szilágyi
a6ca8fd268
Merge pull request #2463 from fjl/rpc-context-key
...
rpc: remove NotifierContextKey
9 years ago
Felix Lange
27116bd46c
Merge pull request #2462 from fjl/rpc-remove-js
...
rpc: move web3.js extensions to internal/web3ext
9 years ago
Felix Lange
a40e61b4ac
rpc: remove NotifierContextKey
...
Context keys must have a unique type in order to prevent
any unintented clashes. The code used int(1) as key.
Fix it by implementing the pattern recommended by package context.
9 years ago
Péter Szilágyi
16d10aae0c
Merge pull request #2461 from karalabe/fix-simulator-estimates
...
accounts/abi/bind/backends: estimate needed gas, not used
9 years ago
Felix Lange
e728aaca72
rpc: move web3.js extensions to internal/web3ext
9 years ago
Péter Szilágyi
e581f2690a
accounts/abi/bind/backends: estimate needed gas, not used
9 years ago
Felix Lange
6197fbf8d7
Merge pull request #2458 from fjl/go-vet
...
all: fix go vet warnings
9 years ago
Péter Szilágyi
5c17b2f521
Merge pull request #2460 from fjl/whisper-expiration-test-delay
...
whisper: deflake Test*MessageExpiration
9 years ago
Felix Lange
3a5bdef962
whisper: deflake Test*MessageExpiration
...
These tests have become a common annoyance on CI. Fix them by allowing
messages with expiration == now into the cache and delaying the check
for expired message handling slightly.
9 years ago
Felix Lange
bf5ae502ef
Makefile: enable go vet on Travis CI
9 years ago
Felix Lange
6fdd0893c3
all: fix go vet warnings
9 years ago
Felix Lange
68c755a238
core/state: fix TestDump
...
Lazy "I'll just put return here instead of fixing the test" found by go vet.
9 years ago
Felix Lange
ebf3cf8f7d
logger/glog: fix go vet issues
...
logging.printf triggered a format string warning. Silence it
by renaming the function.
9 years ago
Felix Lange
24cdac41f3
core, core/types, eth: add and use Block.Body
...
This fixes a few uses of unkeyed Body literals which go vet was
complaining about.
9 years ago
Felix Lange
fdc5a7dc1a
Merge pull request #2457 from fjl/license-update-1.4
...
all: update license information
9 years ago
Felix Lange
d04a2e7557
all: update license information
9 years ago
Felix Lange
728ad6f47d
build: tweak update-license.go
9 years ago
Péter Szilágyi
499d63f706
Merge pull request #2456 from bas-vk/rpc-arg-whitespace
...
cmd/utils: strip excessive whitespace from api command line arguments
9 years ago
Péter Szilágyi
5f917715c5
Merge pull request #2454 from karalabe/trace-fix
...
eth: fix single transaction tracing (run prev mutations)
9 years ago
Bas van Kervel
529897ea2b
cmd/utils: strip excessive whitespace from api command line arguments
9 years ago
Péter Szilágyi
53016c1225
eth, rpc: make trace configs optional
9 years ago
Péter Szilágyi
bbc77f488e
eth: fix single transaction tracing (run prev mutations)
9 years ago
Felix Lange
e50e3bea49
Merge pull request #2235 from fjl/chaindb-api-and-console-fixes
...
eth: add chaindbProperty to debug API (+ console fixes)
9 years ago
Felix Lange
bea56d84e5
internal/debug: add memStats and gcStats to API
9 years ago
Felix Lange
bcd8aeefdd
eth: add chaindbProperty to debug API
9 years ago
Felix Lange
05e257c22c
jsre: hide fields with prefix _ when pretty-printing
...
This makes web3 internals like _requestManager invisible.
9 years ago
Felix Lange
f08680985a
jsre: fix <tab><tab> completion magic
9 years ago
Felix Lange
5542b51b50
jsre: expose Do
9 years ago
Péter Szilágyi
b34b130fb5
Merge pull request #2450 from karalabe/fix-ios-kqueue
...
accounts: disable filesystem notifications on iOS
9 years ago
Péter Szilágyi
fd36448d6a
accounts: disable filesystem notifications on ios
9 years ago
Felix Lange
9d81f4fdd1
Merge pull request #2448 from fjl/jsre-bignum
...
jsre: print BigNumber objects with custom constructor as number
9 years ago
Felix Lange
4e85be0717
jsre: print BigNumber objects with custom constructor as number
9 years ago
Felix Lange
f460b0217f
Merge pull request #2446 from karalabe/console-unlock-fix
...
cmd/utils: fix accounts merge error on console unlock
9 years ago
Péter Szilágyi
a1f1c404c3
cmd/utils: fix accounts merge error on console unlock
9 years ago
Péter Szilágyi
1e9b504ee7
Merge pull request #2284 from fjl/accounts-addr-cache
...
accounts: cache key addresses
9 years ago
Péter Szilágyi
33e4f51749
Merge pull request #2444 from karalabe/gethrpctest-chainconfig-panic
...
cmd/gethrpctest: add missing chain configuration config field
9 years ago
Felix Lange
6498df7b02
accounts: ensure TimedUnlock does not override indefinite unlock timeout
9 years ago
Felix Lange
46df50be18
accounts: improve API and add documentation
...
- Sign takes common.Address, not Account
- Import/Export methods work with encrypted JSON keys
9 years ago
Felix Lange
91aaddaeb3
cmd/geth: add recovery procedure for AmbiguousAddrError
9 years ago
Felix Lange
ea005a0295
cmd/utils: fix --password on Windows
...
Text files created on Windows typically have \r\n line endings.
Trim them when reading password files.
9 years ago
Felix Lange
aca9d6a1fb
cmd/geth: print actual error when --unlock fails
9 years ago
Felix Lange
549f1add29
eth: report unlock errors to RPC clients
9 years ago
Felix Lange
6f1ca0bc91
accounts: add ErrDecrypt
9 years ago
Felix Lange
a9f26dcd0d
accounts: cache key addresses
...
In order to avoid disk thrashing for Accounts and HasAccount,
address->key file mappings are now cached in memory. This makes it no
longer necessary to keep the key address in the file name. The address
of each key is derived from file content instead.
There are minor user-visible changes:
- "geth account list" now reports key file paths alongside the address.
- If multiple keys are present for an address, unlocking by address is
not possible. Users are directed to remove the duplicate files
instead. Unlocking by index is still possible.
- Key files are overwritten written in place when updating the password.
9 years ago
Felix Lange
ef63e9af55
Godeps: add github.com/rjeczalik/notify
9 years ago
Felix Lange
ee1682ffe6
cmd/geth: add tests for account commands
9 years ago
Felix Lange
6cb08d8328
Godeps: add github.com/cspeare/cp
9 years ago