From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 425C797 for ; Mon, 19 Oct 2015 10:43:08 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-lf0-f46.google.com (mail-lf0-f46.google.com [209.85.215.46]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 834FFE3 for ; Mon, 19 Oct 2015 10:43:07 +0000 (UTC) Received: by lffy185 with SMTP id y185so108233681lff.2 for ; Mon, 19 Oct 2015 03:43:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=mIwVELRXnHcf4pKrDbkB7Szk0mMDKJvDtHt1jwMpSeQ=; b=g2C7fajosbYu02bg8YU/M+6vao66sHMWFDI4svpEfklVLz3mPYfk3Mn15u1RDUZ0z8 8UByN5y1P9U1C2DKAJLTlOHGoi1qxVrB9SxdiAHjhHAeLUF/CXM4V26X6mOVarPwM7Hs tveGigZh7Wbd2Rbdyo8g9kNRHH3YHE5LLBqSXJiNZgux6Z76qL8InoqVgR44FnlKVow+ vOL2FiaPfuJPLprLoWdI9Rgm+MUsLu10e8juyh+PAlv7MFdAHgzkgq4mbSZpcDUv2JA9 t6os6eCfehZsH5wr8AINkDXJ1Qunaiz8GlPHMXVHhldHUs0SHSAXPH2TDOi+51ILyN7t suCA== X-Gm-Message-State: ALoCoQnb3MBmD/FBeWZ1aHNVPO35i7P7U9pWa1UNUqq+zS+IxUnQYUHh2uEghPeTvUTXA1XH1jnk MIME-Version: 1.0 X-Received: by 10.180.102.195 with SMTP id fq3mr19985034wib.7.1445251385635; Mon, 19 Oct 2015 03:43:05 -0700 (PDT) Received: by 10.194.114.199 with HTTP; Mon, 19 Oct 2015 03:43:05 -0700 (PDT) In-Reply-To: <878u73hadl.fsf@rustcorp.com.au> References: <20151003143056.GA27942@muck> <87lhbgn4fa.fsf@rustcorp.com.au> <20151008174120.GA9291@muck> <87pp0okeip.fsf@rustcorp.com.au> <87oafzhgat.fsf@rustcorp.com.au> <878u73hadl.fsf@rustcorp.com.au> Date: Mon, 19 Oct 2015 12:43:05 +0200 Message-ID: From: =?UTF-8?B?Sm9yZ2UgVGltw7Nu?= To: Rusty Russell Content-Type: text/plain; charset=UTF-8 X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Bitcoin Dev Subject: Re: [bitcoin-dev] CHECKSEQUENCEVERIFY - We need more usecases to motivate the change X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Development Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 10:43:08 -0000 On Fri, Oct 16, 2015 at 3:26 AM, Rusty Russell via bitcoin-dev wrote: > ... Gavin just told me about setmocktime. That's fast service! Once more functions (specially consensus-critical functions) take nTime explicitly as parameter instead of relying on the library-unfriendly GetAdjustedTime(), then SetMockTime() will be less necessary for testing. For example, see https://github.com/jtimon/bitcoin/commit/88a35548518a27c7d24efe064e1bf4e5b3029578#diff-524ba4b43aa70d393ef51ab42a6d25f2L52