Coder Social home page Coder Social logo

chain-validation's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chain-validation's Issues

Implement chain selection tests

Chain selection tests should assert that implementations select the heaviest chain as their head and that invalid chains are ignored.

test consensus slashing

try for decent line coverage on all the cases, should be pretty easily doable with just faking blocks

Update specs-actors version

Changes have landed in spes-actors that break chain-validation, and thus any impl wishing to update to the latest version of spec-actors. The chain-validation library needs to be updated to work with the new specs-actors code.

test insufficient gas to create new account actor

From Slack Conversation:

Why  4:27 PM:
Interop issue we just hit and would be nice to have a 
test for: Not having enough gas to create a new account
actor through a simple send
Why  4:27
gfc returns exit code 7, and we return exit code 1 i think

Exercise inner sends with a custom actor

To further exercise inner sends we need a new actor through which we can invoke Runtime.Send() without actor-level validation getting in the way. We wouldn't install this actor in real chains, only for testing.

We might be able to put that actor in this repo, or possibly the specs-actors repo if necessary.

Write documentation for RPC API

The RPC client added in #155 needs API documentation. Documentation should cover:

  • link to design doc
  • complete json RPC API reference
    • Parameters
    • Example Parameters
    • Returns
    • Example (a request and its result)
  • how to use the client as a test runner
    • env vars for configuring connections
    • validation config
    • go test to run.

Change box resource names not to include string from method not part of chain validation suite

In the resource name TestChainValidationMessageSuiteTestAccountActorCreationfailcreateBLSaccountactorinsufficientbalance the part TestChainValidationMessageSuite does not appear in the chain validation repo and is generally not under control of the validation suite. This happens to be working only because the test runner methods in Lotus and Go-filecoin share the same exact name.

This dependency is backwards and will lead to fragility. For example, in order to investigate behaviour of a specific test, I create a method:

func TestX(t *testing.T) {
	f := NewFactories(&ValidationConfig{
		trackGas:         true,
		checkExitCode:    true,
		checkReturnValue: true,
		checkStateRoot:   true,
	})
	message.TestNestedSends(t, f)
}

But this invalidates the resource name and so cannot be used for checking gas/state values.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.