| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
build: drop yakkety builds (launchpad end of life)
|
|/ |
|
|\
| |
| | |
node: fix doc typo
|
|/ |
|
|\
| |
| | |
cmd/puppeth: remove wrapping loop in single reads
|
| | |
|
|\ \
| |/
|/| |
Makefile: call shell function to get pwd
|
|/ |
|
| |
|
|\
| |
| | |
cmd: add makecache cmd, use caches during import cmd
|
| | |
|
|/ |
|
|
|
|
| |
There is currently no simple way to obtain the network ID from a Client.
This adds a NetworkID method that wraps the net_version JSON-RPC call.
|
|
|
|
|
| |
Previously, NewManifest was asynchronous so subsequent code which tried
to use the returned manifest could error as the manifest was not yet
persisted.
|
| |
|
| |
|
|\
| |
| |
| |
| | |
This patch updates the Address type in common/types.go so that the Hex
function provides an EIP55-compliant output string. The implementation is pretty lightweight;
on my laptop the benchmark gives 1100ns/op, with the majority of that value due to the Keccak hash.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
mobile: add RinkebyGenesis method
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* core: reduce txpool event loop goroutines and sync structs
* cmd, core, eth: journal local transactions to disk
* core: journal replacement pending transactions too
* core: separate transaction journal from pool
|
|\ \
| | |
| | | |
trie: typo in comment
|
| | | |
|
|\ \ \
| |/ /
|/| | |
core/vm/runtime: fix evm command to use --gasprice flag value
|
|/ / |
|
| |
| |
| |
| | |
(#14806)
|
| |
| |
| |
| | |
As per https://golang.org/s/generatedcode. This will allow other tools
such as golint to properly ignore the files.
|
| | |
|
| |
| |
| |
| |
| |
| | |
* node: Rename TrusterNodes
* node: Rename TrusterNodes
|
|\ \
| | |
| | | |
cmd/faucet: ignore whitespace in gist content
|
| | | |
|
|\ \ \
| |/ /
|/| | |
cmd/puppeth: limit cotnainers to 10MB logs
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* mobile: don't retain transient []byte in CallMsg.SetData
Go mobile doesn't copy []byte parameters, for performance and to allow
writes to the byte array be reflected in the native byte array.
Unfortunately, that means []byte arguments are only valid during the
call it is being passed into.
CallMsg.SetData retains such a byte array. Copy it instead
Fixes #14675
* mobile: copy all []byte arguments from gomobile
To avoid subtle errors when accidentially retaining an otherwise
transient byte slice coming from gomobile, copy all byte slices before
use.
* mobile: replace copySlice with common.CopyBytes
|
| |
| |
| |
| |
| |
| | |
* mobile: Use EIP155Signer - closes #14762
* mobile: Correctly fall back on HomesteadSigner when no chainID is passed in
|
|\ \
| | |
| | | |
README: get rid of the non-existent disasm command
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
consensus/ethash, core: implement Metropolis EIP 100
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This PR polishes the EIP 100 difficulty adjustment algorithm
to match the same mechanisms as the Homestead was implemented
to keep the code uniform. It also avoids a few memory allocs
by reusing big1 and big2, pulling it out of the common package
and into ethash.
The commit also fixes chain maker to forward the uncle hash
when creating a simulated chain (it wasn't needed until now
so we just skipped a copy there).
|
| | | | |
|
| | | |
| | | |
| | | | |
Implements ethereum/EIPs#98
|
| |_|/
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* core: remove redundant storage of transactions and receipts
* core, eth, internal: new transaction schema usage polishes
* eth: implement upgrade mechanism for db deduplication
* core, eth: drop old sequential key db upgrader
* eth: close last iterator on successful db upgrage
* core: prefix the lookup entries to make their purpose clearer
|
| |/
|/| |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
dockerignore: ignore all git metadata and all tests
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Tests are now included as a submodule. This should make updating easier
and removes ~60MB of JSON data from the working copy.
State tests are replaced by General State Tests, which run the same test
with multiple fork configurations.
With the new test runner, consensus tests are run as subtests by walking
json files. Many hex issues have been fixed upstream since the last
update and most custom parsing code is replaced by existing JSON hex
types. Tests can now be marked as 'expected failures', ensuring that
fixes for those tests will trigger an update to test configuration. The
new test runner also supports parallel execution and the -short flag.
|
| | |
|
| |
| |
| |
| |
| | |
As stated in the documentation, this method should be called traceBlockFromFile
and not traceBlockByFile. Previously this would result in a 'The method ... does
not exist/is not available' error.
|
|\ \
| | |
| | | |
Txpool localaccounts
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The commit reworks the transaction pool queue limitation tests
to cater for testing local accounts, also testing the nolocal flag.
In addition, it also fixes a panic if local transactions exceeded
the global queue allowance (no accounts left to drop from) and also
fixes queue eviction to operate on all accounts, not just the one
being updated.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| | |
|
|\ \
| | |
| | | |
Refactor downloader to use interfaces instead of callbacks
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| |_|/
|/| | |
params: remove redundant consts, disable metro on AllProtocolChanges
|
|/ / |
|
|\ \
| | |
| | | |
cmd/swarm: Exit if --ethapi is set
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
The previous attempt to use --ethapi as a fallback if --ens-api is not
set does not work because --ens-api has a default value, and also
setting --ens-api to "" is the suggested way to disable ENS lookups.
Signed-off-by: Lewis Marshall <lewis@lmars.net>
|
|\ \
| | |
| | | |
cmd/swarm: Support using Mainnet for resolving ENS names
|
| | |
| | |
| | |
| | | |
Signed-off-by: Lewis Marshall <lewis@lmars.net>
|
|\ \ \
| |_|/
|/| | |
Fix error when reporting numer of txs in imported blocks
|
|/ / |
|
|\ \
| | |
| | | |
core/vm: fix overflow in gas calculation formula
|
| | | |
|
| | | |
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
With this commit, core/state's access to the underlying key/value database is
mediated through an interface. Database errors are tracked in StateDB and
returned by CommitTo or the new Error method.
Motivation for this change: We can remove the light client's duplicated copy of
core/state. The light client now supports node iteration, so tracing and storage
enumeration can work with the light client (not implemented in this commit).
|
|\ \
| | |
| | | |
common/hexutil: wrap errors in json.UnmarshalTypeError
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This adds type and struct field context to error messages.
Instead of "hex string of odd length" users will now see "json: cannot
unmarshal hex string of odd length into Go struct field SendTxArgs.from
of type common.Address".
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* accounts/abi: reorganizing package and some notes and a quick correction of name.
Signed-off-by: RJ Catalano <rj@monax.io>
get rid of some imports
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: move file names
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: fix boolean decode function
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: fix for the array set and for creating a bool
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: be very very very correct
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: fix up error message and variable names
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: take out unnecessary argument in pack method
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: add bool unpack test and add a panic to readBool function
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: fix panic message
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: change from panic to basic error
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: fix nil to false
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: fill out type regex tests and fill with the correct type for integers
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: move packNumbers into pack.go.
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: separation of the testing suite into appropriately named files.
Signed-off-by: RJ Catalano <rj@monax.io>
* account/abi: change to hex string tests.
Signed-off-by: RJ Catalano <rj@monax.io>
* account/abi: fix up rest of tests to hex
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: declare bool at the package level
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: use errors package in the error file.
Signed-off-by: RJ Catalano <rj@monax.io>
* accounts/abi: fix ugly hack and fix error type declaration.
Signed-off-by: RJ Catalano <rj@monax.io>
|
| | | |
|
|\ \ \
| |_|/
|/| | |
cmd/puppeth: fix key reuse during faucet deploys
|
| | | |
|
|\ \ \
| | | |
| | | | |
whisperv5: integrate whisper and implement API
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
core: remove unused events
|
| | | | | |
|
| | | | |
| | | | |
| | | | | |
Demo of the issue: https://play.golang.org/p/EeTLFfppqC
|
|\ \ \ \ \
| | | | | |
| | | | | | |
swarm/storage: remove panic on invalid chunk
|
| | |_|/ /
| |/| | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* Makefile: add make swarm command
* Makefile: minor code formatting polishes
|
|/ / / /
| | | |
| | | | |
README: change heading to "Go Ethereum"
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
consensus/clique: choose valid votes
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
eth: gracefully error if database cannot be opened
|
| | | | | | |
|
| | |_|_|/
| |/| | | |
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
travis.yml, cmd/swarm: fix Travis CI build
|
| | | | | |
|
|/ / / / |
|
|\ \ \ \
| | | | |
| | | | | |
core: add testcase for txpool
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
cmd/geth: corrently init gas price for CLI CPU mining
|
| |/ / / / |
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* eth/downloader: separate state sync from queue
Scheduling of state node downloads hogged the downloader queue lock when
new requests were scheduled. This caused timeouts for other requests.
With this change, state sync is fully independent of all other downloads
and doesn't involve the queue at all.
State sync is started and checked on in processContent. This is slightly
awkward because processContent doesn't have a select loop. Instead, the
queue is closed by an auxiliary goroutine when state sync fails. We
tried several alternatives to this but settled on the current approach
because it's the least amount of change overall.
Handling of the pivot block has changed slightly: the queue previously
prevented import of pivot block receipts before the state of the pivot
block was available. In this commit, the receipt will be imported before
the state. This causes an annoyance where the pivot block is committed
as fast block head even when state downloads fail. Stay tuned for more
updates in this area ;)
* eth/downloader: remove cancelTimeout channel
* eth/downloader: retry state requests on timeout
* eth/downloader: improve comment
* eth/downloader: mark peers idle when state sync is done
* eth/downloader: move pivot block splitting to processContent
This change also ensures that pivot block receipts aren't imported
before the pivot block itself.
* eth/downloader: limit state node retries
* eth/downloader: improve state node error handling and retry check
* eth/downloader: remove maxStateNodeRetries
It fails the sync too much.
* eth/downloader: remove last use of cancelCh in statesync.go
Fixes TestDeliverHeadersHang*Fast and (hopefully)
the weird cancellation behaviour at the end of fast sync.
* eth/downloader: fix leak in runStateSync
* eth/downloader: don't run processFullSyncContent in LightSync mode
* eth/downloader: improve comments
* eth/downloader: fix vet, megacheck
* eth/downloader: remove unrequested tasks anyway
* eth/downloader, trie: various polishes around duplicate items
This commit explicitly tracks duplicate and unexpected state
delieveries done against a trie Sync structure, also adding
there to import info logs.
The commit moves the db batch used to commit trie changes one
level deeper so its flushed after every node insertion. This
is needed to avoid a lot of duplicate retrievals caused by
inconsistencies between Sync internals and database. A better
approach is to track not-yet-written states in trie.Sync and
flush on commit, but I'm focuing on correctness first now.
The commit fixes a regression around pivot block fail count.
The counter previously was reset to 1 if and only if a sync
cycle progressed (inserted at least 1 entry to the database).
The current code reset it already if a node was delivered,
which is not stong enough, because unless it ends up written
to disk, an attacker can just loop and attack ad infinitum.
The commit also fixes a regression around state deliveries
and timeouts. The old downloader tracked if a delivery is
stale (none of the deliveries were requestedt), in which
case it didn't mark the node idle and did not send further
requests, since it signals a past timeout. The current code
did mark it idle even on stale deliveries, which eventually
caused two requests to be in flight at the same time, making
the deliveries always stale and mass duplicating retrievals
between multiple peers.
* eth/downloader: fix state request leak
This commit fixes the hang seen sometimes while doing the state
sync. The cause of the hang was a rare combination of events:
request state data from peer, peer drops and reconnects almost
immediately. This caused a new download task to be assigned to
the peer, overwriting the old one still waiting for a timeout,
which in turned leaked the requests out, never to be retried.
The fix is to ensure that a task assignment moves any pending
one back into the retry queue.
The commit also fixes a regression with peer dropping due to
stalls. The current code considered a peer stalling if they
timed out delivering 1 item. However, the downloader never
requests only one, the minimum is 2 (attempt to fine tune
estimated latency/bandwidth). The fix is simply to drop if
a timeout is detected at 2 items.
Apart from the above bugfixes, the commit contains some code
polishes I made while debugging the hang.
* core, eth, trie: support batched trie sync db writes
* trie: rename SyncMemCache to syncMemBatch
|
|\ \ \ \
| | | | |
| | | | | |
consensus/clique: fix typo and don't need to add snapshot into recents again
|
| | |/ /
| |/| | |
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
swarm/fuse: simplify externalUnmount, use subtests
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The code looked for /usr/bin/diskutil on darwin, but it's actually
located in /usr/sbin. Fix that by not specifying the absolute path.
Also remove weird timeout construction and extra whitespace.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This commit does various code refactorings:
- generalizes and moves the request retrieval/timeout/resend logic out of LesOdr
(will be used by a subsequent PR)
- reworks the peer management logic so that all services can register with
peerSet to get notified about added/dropped peers (also gets rid of the ugly
getAllPeers callback in requestDistributor)
- moves peerSet, LesOdr, requestDistributor and retrieveManager initialization
out of ProtocolManager because I believe they do not really belong there and the
whole init process was ugly and ad-hoc
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
As per #14661 TransactionByHash always returns false for pending.
This uses blockNumber rather than blockHash to ensure that it returns
the correct value for pending and will not suffer side-effects if
eth_getTransactionByHash is fixed in future.
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* ethdb: remove Set
Set deadlocks immediately and isn't part of the Database interface.
* trie: add Err to Iterator
This is useful for testing because the underlying NodeIterator doesn't
need to be kept in a separate variable just to get the error.
* trie: add LeafKey to iterator, panic when not at leaf
LeafKey is useful for callers that can't interpret Path.
* trie: retry failed seek/peek in iterator Next
Instead of failing iteration irrecoverably, make it so Next retries the
pending seek or peek every time.
Smaller changes in this commit make this easier to test:
* The iterator previously returned from Next on encountering a hash
node. This caused it to visit the same path twice.
* Path returned nibbles with terminator symbol for valueNode attached
to fullNode, but removed it for valueNode attached to shortNode. Now
the terminator is always present. This makes Path unique to each node
and simplifies Leaf.
* trie: add Path to MissingNodeError
The light client trie iterator needs to know the path of the node that's
missing so it can retrieve a proof for it. NodeIterator.Path is not
sufficient because it is updated when the node is resolved and actually
visited by the iterator.
Also remove unused fields. They were added a long time ago before we
knew which fields would be needed for the light client.
|
|\ \ \
| | | |
| | | | |
cmd/geth: fixed a minor typo in the comments
|
|/ / / |
|
| | | |
|
|\ \ \
| | | |
| | | | |
core/vm: improve opByte
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
endianness
|
| |/ / |
|
|\ \ \
| | | |
| | | | |
mobile: use EIP155 signer for determining sender
|
| | | | |
|
| | |/
| |/| |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
consensus/ethash, cmd/geth: Fix `makedag` epoch
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
`geth makedag <blocknumber> <path>` was creating DAGs for
`<blocknumber>/<epoch_length> + 1`, hence
it was impossible to create an epoch 0 DAG.
This fixes the calculations in `consensus/ethash/ethash.go` for
`MakeDataset` and `MakeCache`, and applies `gofmt`.
|
| | |
|
| |
| |
| | |
Fixes #14586
|
| |
| |
| |
| |
| |
| | |
The error returned by client.Upload was previously being ignored due to becoming
out of scope outside the if statement. This has been fixed by instead defining a
function which returns the hash and error (rather than trying to set the hash in
each branch of the if statement).
|
|\ \
| | |
| | | |
core: Fix VM error logging
|
| |/
| |
| |
| | |
Signed-off-by: Lewis Marshall <lewis@lmars.net>
|
|/ |
|
| |
|
| |
|
|\
| |
| | |
core/vm: Use a bitmap instead of a map for jumpdest analysis
|
|/
|
|
| |
t push --force
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This PR adds a Swarm development environment which can be run in a
Docker container and provides scripts for building binaries and running
Swarm clusters.
|
| |
|
| |
|
|\
| |
| | |
accounts/keystore, crypto: don't enforce key checks on existing keyfiles
|
| | |
|
|\ \
| | |
| | | |
core: reduce transaction reorganization overhead
|
| | | |
|
| |/ |
|
|\ \
| | |
| | | |
ethstats: reduce ethstats traffic by trottling reports
|
| |/ |
|
|\ \
| |/
|/| |
cotnainers/docker: fix the legacy alpine image before dropping
|
|/ |
|
| |
|
| |
|
|\
| |
| | |
internal/ethapi: add mutex around signing + nonce assignment
|
| |
| |
| |
| |
| | |
This prevents concurrent assignment of identical nonces when automatic
assignment is used.
|
|\ \
| | |
| | | |
cmd/puppeth: fix improper key validation for remotes
|
| | | |
|
|\ \ \
| |/ /
|/| | |
core: check for gas limit exceeding txs too on new block
|
| | | |
|
|\ \ \
| | | |
| | | | |
consensus/clique: cache block signatures for fast checks
|
| |/ / |
|
|\ \ \
| |/ /
|/| | |
ethstats: don't report transaction content, only hash
|
|/ / |
|
|\ \
| | |
| | | |
cmd, core, eth: configurable txpool parameters
|
| | | |
|
|\ \ \
| | | |
| | | | |
internal/ethapi: fix tx nonces in pool inspect/content
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
eth: update default gas price when not mining too
|
| |/ / / |
|
|\ \ \ \
| |/ / /
|/| | | |
eth: don't import propagated blocks during fastsync
|
|/ / / |
|
|\ \ \
| |/ /
|/| | |
Improved Dockerfile?
|
| | | |
|
|/ / |
|
|\ \
| | |
| | | |
travis, appveyor: bump to Go 1.8.3, Android NDK 14b
|
| |/ |
|
|\ \
| |/
|/| |
core: fix various golint warnings and errors
|
| | |
|
|/
|
|
|
|
|
|
| |
1. fix typos
2. methods recevier of struct should be same
3. comments improve
(cherry picked from commit 1ba979539582a00b7fd1a7c8a37a6852e59eac0d)
|
|\
| |
| | |
Rewrite templates for (sub)commands help section
|
| | |
|
|\ \
| | |
| | | |
core/vm: allocate stack to 1024
|
| |/
| |
| |
| |
| | |
Pre allocate the stack to 1024 optimising stack pushing, reducing calls
to runtime.makeslice and runtime.mallocgc
|
|/ |
|
|\
| |
| | |
Enforce 256 bit keys on raw import, support raw mobile imports
|
| | |
|
| | |
|
|\ \
| | |
| | | |
consensus, core/*, params: metropolis preparation refactor
|
| | | |
|
| | |
| | |
| | |
| | | |
Also add the package to the license tool ignore list.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Byte padding function should return the given slice if the length is
smaller or equal rather than *only* smaller than.
This fix improves almost all EVM push operations.
|
| | |
| | |
| | |
| | |
| | | |
Improve the duplication method of the stack to reuse big ints by passing
in an existing integer pool.
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Improved push instructions by removing unnecessary big int allocations
and by making it int instead of big.Int
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Add the object to the list of destructed objects during a selfdestruct /
suicide operation and also remove it from the list once the journal
reverts.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This commit is a preparation for the upcoming metropolis hardfork. It
prepares the state, core and vm packages such that integration with
metropolis becomes less of a hassle.
* Difficulty calculation requires header instead of individual
parameters
* statedb.StartRecord renamed to statedb.Prepare and added Finalise
method required by metropolis, which removes unwanted accounts from
the state (i.e. selfdestruct)
* State keeps record of destructed objects (in addition to dirty
objects)
* core/vm pre-compiles may now return errors
* core/vm pre-compiles gas check now take the full byte slice as argument
instead of just the size
* core/vm now keeps several hard-fork instruction tables instead of a
single instruction table and removes the need for hard-fork checks in
the instructions
* core/vm contains a empty restruction function which is added in
preparation of metropolis write-only mode operations
* Adds the bn256 curve
* Adds and sets the metropolis chain config block parameters (2^64-1)
|
|\ \ \
| | | |
| | | | |
cmd/faucet: fix a few typos
|
|/ / / |
|
|\ \ \
| |_|/
|/| | |
cmd/geth: reintroduce wallet import subcommand
|
|/ / |
|
|\ \
| | |
| | | |
mobile: manage FilterQuery enabling contract events subscription
|
| | | |
|
|/ / |
|
| |
| |
| | |
Signed-off-by: Lewis Marshall <lewis@lmars.net>
|
| |
| |
| |
| |
| | |
Fixes #14474.
Signed-off-by: Lewis Marshall <lewis@lmars.net>
|
| | |
|
| | |
|
|/
|
|
|
|
|
| |
More context in the bug This solves the problems of transactions being
submitted simultaneously, and getting the same nonce, due to the gap (due to
signing) between nonce-issuance and nonce-update. With this PR, a lock will
need to be acquired whenever a nonce is used, and released when the transaction
is submitted or errors out.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
execQueue used an atomic counter to track whether the queue had been
closed, but the checking the counter didn't happen because the queue was
blocked on its channel.
Fix it by using a condition variable instead of sync/atomic. I tried an
implementation based on channels first, but it was hard to make it
reliable.
quit now waits for the queue loop to exit.
|
| |
|
|
|
|
|
|
|
| |
Previously, resolve errors were being swallowed and the returned error
was a generic "not a content hash" which isn't helpful.
This updates the Resolve function to fail fast rather than only
returning an error at the end, and also adds test coverage.
|
| |
|
|
|
|
|
|
| |
CentOS has been added as a multi-machine option to the Vagrant script.
Ubuntu is still the default option. For starting the CentOS machine, use:
vagrant up centos
|
|\
| |
| | |
mobile: add toString & rlp/json encoding for protocol types
|