public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: Pieter Wuille <pieter.wuille@gmail•com>
To: Gavin Andresen <gavinandresen@gmail•com>
Cc: bitcoin-development@lists•sourceforge.net
Subject: Re: [Bitcoin-development] script tests - invalid script in script_valid.json?
Date: Tue, 31 Jul 2012 16:26:21 +0200	[thread overview]
Message-ID: <CAPg+sBhMaX2=t1peYRUWk4DCyMFxihPUV2+e+4p8zVLcCci-kQ@mail.gmail.com> (raw)
In-Reply-To: <CABsx9T016OmU2qU1a67=YmpA4VDbzrddOamc8=Mt6x7BhVO1Uw@mail.gmail.com>

On Mon, Jul 30, 2012 at 2:52 AM, Gavin Andresen <gavinandresen@gmail•com> wrote:
> check*sig tests are tricky, because they have to refer to previous
> unspent transactions and private keys (so require a particular block
> chain to test against). Brilliant ideas on a simple data-driven format
> welcome.

Ultraprune changes the block validation mechanism to only use a set of
coins and the latest block pointer as state. This state is represented
by an abstract class with several implementations. It would be easy to
have a testset run with a memory-backed coin set as state, with the
list of coins and blocks loaded from a file.

-- 
Pieter



  parent reply	other threads:[~2012-07-31 14:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-29 16:31 Amir Taaki
2012-07-29 16:33 ` Stefan Thomas
2012-07-29 16:42   ` Amir Taaki
2012-07-29 17:35     ` Stefan Thomas
2012-07-29 18:48       ` Jeff Garzik
2012-07-30  0:52       ` Gavin Andresen
2012-07-30 14:41         ` Amir Taaki
2012-07-31 14:26         ` Pieter Wuille [this message]
2012-07-31 14:39         ` Matt Corallo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPg+sBhMaX2=t1peYRUWk4DCyMFxihPUV2+e+4p8zVLcCci-kQ@mail.gmail.com' \
    --to=pieter.wuille@gmail$(echo .)com \
    --cc=bitcoin-development@lists$(echo .)sourceforge.net \
    --cc=gavinandresen@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox