Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rustyrussell/pettycoin
base: 5a4c143c7946
Choose a base ref
...
head repository: rustyrussell/pettycoin
compare: 611822f9b131
Choose a head ref
  • 6 commits
  • 10 files changed
  • 1 contributor

Commits on Aug 8, 2014

  1. protocol: make testnet horizon 3 days.

    12 hours makes it horribly difficult to send test transfers across timezones;
    at least this gives us the weekend!
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed Aug 8, 2014
    Configuration menu
    Copy the full SHA
    806abc3 View commit details
    Browse the repository at this point in the history
  2. recv_children: handle case where block isn't known properly.

    We were falling through as if they said there were no children.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed Aug 8, 2014
    Configuration menu
    Copy the full SHA
    fad6220 View commit details
    Browse the repository at this point in the history
  3. peer: initiate new block query during sync.

    We currently get a surprise next time a new block is generated, and fall
    back to chasing prevs.  We should fix the sync protocol, but meanwhile, this
    means we at least get those blocks before we consider ourselves "synced"
    
    Note that this breaks our sync test: we don't get told about new blocks while
    we're syncing (and we do that for much longer now).  We would normally
    catch up when the next block arrived.  But we don't need the block inject
    at all anymore to force synchronization, so remove it.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed Aug 8, 2014
    Configuration menu
    Copy the full SHA
    a084648 View commit details
    Browse the repository at this point in the history
  4. blockfile: handle case where there are incomplete blocks in file.

    We want to ask about any transactions we don't know about once we've loaded
    the blocks and transactions off disk.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed Aug 8, 2014
    Configuration menu
    Copy the full SHA
    28098f4 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2014

  1. peer: use recv_tx_from_peer().

    We made the code more general and moved it into recv_tx.c, but never called
    it!  Fix that so we don't have duplicated code (they're currently identical).
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed Aug 9, 2014
    Configuration menu
    Copy the full SHA
    ba0fe87 View commit details
    Browse the repository at this point in the history
  2. check_block: don't hit think the current tx is a dup in check_tx_inpu…

    …ts_and_refs
    
    We weren't excluding the existing transaction, which can happen when we're
    doing check_resolved_txs().  This makes us think there's a doublespend
    in the block!
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed Aug 9, 2014
    Configuration menu
    Copy the full SHA
    611822f View commit details
    Browse the repository at this point in the history