Commit Graph

1066 Commits

Author SHA1 Message Date
Bitcoinzie 3056dcab92 Update README.md
Changed snapshot version number to reflect poc-8 changes
2015-01-14 22:30:21 -08:00
Roman Mandeleil e56dfacaae Merge remote-tracking branch 'origin/master' 2015-01-14 11:47:58 +02:00
Roman Mandeleil 8112d87b86 Exclude new tests that doesn't pass 2015-01-14 11:47:41 +02:00
Roman Mandeleil bed4e9f8a8 upgrade to POC-8 2015-01-14 11:42:19 +02:00
Roman Mandeleil 2243c765da Merge pull request #197 from ligi/ligi/code_review/speed_improvements
speed improvements, simplification and add test-cases
2015-01-10 22:54:50 +02:00
ligi 59a5baff81 we want EMPTY_BYTE_ARRAY 2015-01-10 21:37:40 +01:00
ligi 3a8258a07e use the available ZERO_BYTE_ARRAY 2015-01-10 21:05:00 +01:00
ligi 9ab5c21fdd speed improvements and add test-cases 2015-01-10 20:37:51 +01:00
Roman Mandeleil 910a8b9552 Comment gas charge for pre-compiled contracts 2015-01-10 16:20:08 +02:00
Roman Mandeleil e3b1e3aa1e Polish some. 2015-01-09 18:14:26 +02:00
Roman Mandeleil b017df080b Implement pre-compiled contract
In order to improve performance of certain VM functionality
 Ethereum introduce plug-in mechanism  called pre-compiled
 contracts.

 Supported functionality:

  ecRecover - (addr: 01) - recover address out of hash, v, r, s - parameters.
  sha256 - (addr: 02) - calculate hash value with sha256 algorithm
  ripempd160 - (addr:03)  - calculate hash value with repimpd algorithm
2015-01-09 16:41:36 +02:00
Roman Mandeleil 620f365205 Fix payment availability: sender.balance >= tx.value + tx.gas 2015-01-08 20:26:24 +02:00
Roman Mandeleil 18ed198750 Return stRecursiveCreate to the testing run 2015-01-08 20:01:42 +02:00
Roman Mandeleil 8bbdc3ae31 Merge remote-tracking branch 'origin/master' 2015-01-08 19:50:05 +02:00
Roman Mandeleil 7590efdb3b Remove cpp snippet 2015-01-08 19:49:12 +02:00
Roman Mandeleil 48b27d38ec Validate JUMPDEST by pre-compile + tweak injection of blockStore by the new interface 2015-01-08 19:48:37 +02:00
Roman Mandeleil 59833f3fd6 Fix BLOCKHASH op new rule
The blockhash retrieved by index on one of the
recent 256 blocks. If the index is out of that
window zero pushed into the stack as a result
2015-01-08 18:55:52 +02:00
Chris Beams c3a5dd960b
Update Travis build script and cache directories 2015-01-07 09:25:21 +01:00
Chris Beams 2af33195da
Set VM log level to ERROR for fast test execution 2015-01-07 09:17:12 +01:00
Chris Beams 84b1cef682
Increase stack size during testing
This is in order to accommodate GitHubStateTest#stSystemOperationsTest,
which tests Ethereum's rules around maximum call stack depth, and thus
requires increasing Java's own defaults.

If this option is not set, this test results in a
StackOverflowException. Note that the setting is applied to Gradle's
`test` closure as opposed to a the global `JAVA_OPTS` environment
variable, because Gradle spawns a new process for executing tests.
2015-01-07 08:55:49 +01:00
Chris Beams 11e8a55304
Revert "Ignore GitHubStateTest#stSystemOperationsTest"
This reverts commit 52b417947b.
2015-01-07 08:15:19 +01:00
Chris Beams 6ab3fb3eca
Enable Travis CI's new container-based infrastructure
This is being done in order to enable Travis's new caching functionality
and thus to speed up the build. See previous commit adding the `cache`
section to .travis.yml, and see also:

http://docs.travis-ci.com/user/workers/container-based-infrastructure/
2015-01-07 07:13:05 +01:00
Chris Beams 3f3f577fc4
Improve visibility of JAVA_OPTS env var in .travis.yml 2015-01-07 07:08:39 +01:00
Chris Beams 1eeb9e662c
Update JAVA_OPTS in `env` section of .travis.yml 2015-01-07 07:01:36 +01:00
Chris Beams dd976374fd
Revert "Tweak gradlew script to print arguments before run"
This reverts commit d9ca29bd9f.
2015-01-07 06:59:13 +01:00
Chris Beams 52b417947b
Ignore GitHubStateTest#stSystemOperationsTest
This test results in a stack overflow.
2015-01-07 06:58:36 +01:00
Chris Beams 7e12cfe071
Configure Travis to cache Gradle dependencies
See http://docs.travis-ci.com/user/caching/
2015-01-07 06:53:22 +01:00
Roman Mandeleil ab2ed4130b Update to -Xss32M 2015-01-06 22:24:28 +02:00
Roman Mandeleil d9ca29bd9f Tweak gradlew script to print arguments before run 2015-01-06 22:18:17 +02:00
Roman Mandeleil f1decf6479 Fix: 'export JAVA_OPTS=-Xss16M' typo 2015-01-06 22:06:08 +02:00
Roman Mandeleil f586069c23 Tweak Travis for bigger stack -Xss16M 2015-01-06 21:58:24 +02:00
Roman Mandeleil d5ff8bcaab Fix VMComplexText.test2 for new JUMPDEST logic 2015-01-06 21:39:20 +02:00
Roman Mandeleil cf66dc02df Fix JUMPDEST requirements in the VMTest 2015-01-06 21:20:17 +02:00
Roman Mandeleil 85a4541f63 Fix StackOverflowError on travis run 2015-01-06 21:01:22 +02:00
Roman Mandeleil 0039995aad Merge remote-tracking branch 'origin/master' 2015-01-06 20:53:57 +02:00
Roman Mandeleil 8eadadcd16 Fixed TCK test suite: stSystemOperationsTest.json, included back to the general run. 2015-01-06 20:53:28 +02:00
Roman Mandeleil c0e2bf2e38 Fix: result empty on no run was executed 2015-01-06 20:47:20 +02:00
Roman Mandeleil 02be38a85d Fix new call level
When the current level is 1024, next CALL/CREATE
will do simple return with zero value pushed to the
 stack
2015-01-06 20:40:05 +02:00
Roman Mandeleil 832c24014d Fix internal call halt on any Exception push zero 2015-01-06 16:42:51 +02:00
Roman Mandeleil ab258b3fc9 Fix JUMPDEST requred in all cases 2015-01-06 16:41:53 +02:00
Chris Beams cde55dd100
Update Travis notifications
Notify on failure and first success.
2015-01-06 14:27:24 +01:00
Roman Mandeleil 16965b02a2 Log success TCK test 2015-01-06 15:24:35 +02:00
Chris Beams ab880805f7
Update Travis notifications 2015-01-06 14:20:21 +01:00
Chris Beams 1c354cb736
Re-enable Bintray upload support
Thanks to @jbaruch for his comments at
https://github.com/ethereum/ethereumj/commit/00aba13#commitcomment-9167542
2015-01-06 14:08:17 +01:00
Chris Beams 00aba13a3d
Remove Bintray upload support for now
There is a known issue with Gradle's new `maven-publish` plugin that
causes all dependencies in the published pom to runtime-scoped [1]. This
causes conflicts with our use of Spring's `propdeps` Gradle plugin that
introduces optional and provided scopes.

This commit drops down to using Gradle's older, orginal `maven` plugin,
and JFrog's old-style `artifactory-publish` plugin in order to preserve
propdeps support.

This means removing JFrog's `bintray` plugin, as it appears to depend on
the `maven-publish` plugin. For the moment, ethereumj only really needs
to publish snapshots, and this is still supported. This is a stopgap
measure; it will be necessary to deal with getting uploads to
Bintray/JCenter working again once we're ready for a non-snapshot
release, but this can be dealt with later.

[1]: http://forums.gradle.org/gradle/topics/maven_publish_plugin_generated_pom_making_dependency_scope_runtime
2015-01-06 11:50:03 +01:00
Chris Beams 04ba6c4ed7
Customize pom for publication to Maven Central 2015-01-06 11:22:12 +01:00
Chris Beams 7452765d62
Upgrade to Gradle propdeps plugin v0.0.7 2015-01-06 11:21:59 +01:00
Chris Beams f34d1f49dc
Polish changes made in pull request #189
- Organize imports using shared IDEA configuration

 - Format sources, including:
   - Normalize 4-space indentation
   - Wrap at 120 char right margin
   - Remove spaces around method arguments
2015-01-06 09:50:58 +01:00
Roman Mandeleil 02e7c28ffd Merge pull request #189 from d53d4f7ff2cc77b71/tests-2
Add tests for Messages in p2p/eth
2015-01-06 10:35:57 +02:00
Chris Beams 2165bd506e
Avoid transitive dependency on various logging libs
Use Spring's `propdeps` plugin to introduce optional/provided scopes for
gradle dependencies. Mark libraries such as slf4j-log4j12 as optional.
These libraries are required to run a local ethereumj node, but they are
not required in order to compile against ethereumj in a downstream
appliaction. These libraries easily can cause conflicts, for example if
another slf4j-* library (such as slf4j-logback) is on the classpath.
2015-01-05 18:52:34 +01:00