Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream #2

Merged
merged 36 commits into from
Mar 16, 2021
Merged

Merge upstream #2

merged 36 commits into from
Mar 16, 2021

Commits on May 13, 2020

  1. Improve error message about non-active segwit on simnet

    I started playing with simnet and was confronted with error message:
    
    ```
    [ERR] FNDG: Unable to broadcast funding tx for ChannelPoint(<point>:0):
    -22: TX rejected: transaction <tx> has witness data, but segwit isn't active yet
    ```
    
    I wasn't aware of the activation period so I got quite puzzled.
    Google helped. But I think the message could mention likely cause.
    
    Newly it optionally prints something like:
    
    ```
    (The threshold for segwit activation is 300 blocks on simnet, current best height is 113)
    ```
    darwin authored and jcvernaleo committed May 13, 2020
    Configuration menu
    Copy the full SHA
    b298415 View commit details
    Browse the repository at this point in the history
  2. btcctl: add regtest mode to btcctl

    Rjected authored and jcvernaleo committed May 13, 2020
    Configuration menu
    Copy the full SHA
    b470eee View commit details
    Browse the repository at this point in the history
  3. build: replace travis-ci with github actions.

    test go 1.14
    use golangci-lint
    dajohi committed May 13, 2020
    Configuration menu
    Copy the full SHA
    a505b99 View commit details
    Browse the repository at this point in the history
  4. build: update deps

    dajohi committed May 13, 2020
    Configuration menu
    Copy the full SHA
    bc8d63b View commit details
    Browse the repository at this point in the history
  5. build: clean linter warnings

    dajohi committed May 13, 2020
    Configuration menu
    Copy the full SHA
    f7399e6 View commit details
    Browse the repository at this point in the history

Commits on May 15, 2020

  1. btcjson: change getblock default verbosity to 1

    This change makes btcd's getblock command match bitcoind's. Previously
    the default verbosity was 0, which caused errors when using the
    rpcclient library to connect to a bitcoind node - getblock would
    unmarshall incorrectly since it didn't expect a verbosity=1 result when
    it did not specify verbosity.
    henryperson authored May 15, 2020
    Configuration menu
    Copy the full SHA
    d38279e View commit details
    Browse the repository at this point in the history
  2. rpcclient: send legacy GetBlock request for backwards compatibility

    Without this, users of this library wouldn't be able to issue GetBlock
    requests to nodes which haven't updated to support the latest request
    format, namely the use of a single `int` parameter to denote verbosity
    instead of two `bool`s.
    wpaulino committed May 15, 2020
    Configuration menu
    Copy the full SHA
    742935e View commit details
    Browse the repository at this point in the history
  3. Merge pull request btcsuite#1575 from dajohi/clean

    build: multiple cleanups
    Roasbeef authored May 15, 2020
    Configuration menu
    Copy the full SHA
    9a88e1d View commit details
    Browse the repository at this point in the history
  4. Merge pull request btcsuite#1577 from wpaulino/getblock-compat

    rpcclient: send legacy GetBlock request for backwards compatibility
    Roasbeef authored May 15, 2020
    Configuration menu
    Copy the full SHA
    9f0179f View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2020

  1. rpcclient: Add cookie auth

    Based on Hugo Landau's cookie auth implementation for Namecoin's ncdns.
    
    Fixes btcsuite#1054
    JeremyRand authored and jcvernaleo committed Jun 8, 2020
    Configuration menu
    Copy the full SHA
    280845a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    915788b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e6f163e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6d521ff View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    714de3f View commit details
    Browse the repository at this point in the history
  6. Improve chain state init efficiency

    Remove unnecessary slice of all block indexes and
    remove DB iteration over all block indexes that
    used to determined the size of the slice.
    lindlof authored and jcvernaleo committed Jun 8, 2020
    Configuration menu
    Copy the full SHA
    b11bf58 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2020

  1. Add blockchain.NewUtxoEntry() to directly create entries for UtxoView…

    …point
    
    The current methods to add to a UtxoViewpoint don't allow for a situation where
    we have only UTXO data but not a whole transaction.  This commit allows
    contstruction of a UtxoEntry without requiring a full MsgTx.
    
    AddTxOut() and AddTxOuts() both require a whole transaction, including the inputs,
    which are only used in order to calculate the txid.  In some situations, such as
    with use of the utreexo accumulator, we only have the utxo data but not the
    transaction which created it.
    
    For reference, utreexo's initial usage of the blockchain.NewUtxoEntry() function is at
    https://github.com/mit-dci/utreexo/pull/135/files#diff-3f7b8f9991ea957f1f4ad9f5a95415f0R96
    adiabat authored and jcvernaleo committed Jun 15, 2020
    Configuration menu
    Copy the full SHA
    a383a71 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    73d69f0 View commit details
    Browse the repository at this point in the history
  3. Add fundrawtransaction RPC call

    torkelrogstad authored and jcvernaleo committed Jun 15, 2020
    Configuration menu
    Copy the full SHA
    e4f5902 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2020

  1. Configuration menu
    Copy the full SHA
    7b2ff5d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e2d9cf4 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2020

  1. peer: knownInventory, sentNonces - use generic lru

    While here, also rename and generalize limitMap and apply to
    other maps which need to be bounded.
    tuxcanfly authored and jcvernaleo committed Jul 8, 2020
    Configuration menu
    Copy the full SHA
    875b51c View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2020

  1. btcec: Avoid panic in fieldVal.SetByteSlice for large inputs

    The implementation has been adapted from the dcrec module in dcrd. The
    bug was initially fixed in decred/dcrd@3d9cda1 while transitioning to a
    constant time algorithm. A large set of test vectors were subsequently
    added in decred/dcrd@8c6b52d.
    
    The function signature has been preserved for backwards compatibility.
    This means that returning whether the value has overflowed, and the
    corresponding test vectors have not been backported.
    
    This fixes btcsuite#1170 and closes a previous attempt to fix the bug in btcsuite#1178.
    onyb authored and jcvernaleo committed Jul 13, 2020
    Configuration menu
    Copy the full SHA
    d28c716 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2020

  1. config+service_windows: add flag to disable win service

    To run integration tests with btcd on Windows in non-interactive
    environments (such as the Travis build with Windows machines), we
    need to make sure we can still spawn a child process instead of only a
    windows background service.
    guggero committed Jul 22, 2020
    Configuration menu
    Copy the full SHA
    c739023 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3c56a6b View commit details
    Browse the repository at this point in the history
  3. Update json_rpc_api.md

    Corrections suggested by @onyb btcsuite#1608 (comment)
    JettScythe authored and jcvernaleo committed Jul 22, 2020
    Configuration menu
    Copy the full SHA
    69773a7 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2020

  1. netsync: handle notfound messages from peers

    backport from decred/dcrd#2253
    
    When a peer sends a notfound message, remove the hash from requested
    map.  Also increase notfound ban score and return early if it
    disconnects the peer.
    tuxcanfly authored and jcvernaleo committed Jul 28, 2020
    Configuration menu
    Copy the full SHA
    24db7d7 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2020

  1. Merge pull request btcsuite#1609 from guggero/disable-windows-service

    config+service_windows: add flag to disable win service
    Roasbeef authored Jul 30, 2020
    Configuration menu
    Copy the full SHA
    1db1b6f View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2020

  1. release: update release script path

    Rjected authored and jcvernaleo committed Aug 27, 2020
    Configuration menu
    Copy the full SHA
    4255e1e View commit details
    Browse the repository at this point in the history
  2. release: remove old scripts and update process doc

    - remove prep_release.sh and notes.sample
    - update license in release.sh
    - add notes for maintainers on the release process
    - mention CHANGES file modifications
    Rjected authored and jcvernaleo committed Aug 27, 2020
    Configuration menu
    Copy the full SHA
    2a0d6fd View commit details
    Browse the repository at this point in the history
  3. Update CHANGES file for 0.21.0 release

    Also updated changes for 0.20.1, and added a small note about changes
    since 0.12.0.
    onyb authored and jcvernaleo committed Aug 27, 2020
    Configuration menu
    Copy the full SHA
    4527c56 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2020

  1. Configuration menu
    Copy the full SHA
    56cc42f View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2021

  1. Configuration menu
    Copy the full SHA
    cbd59eb View commit details
    Browse the repository at this point in the history
  2. Handle new payload

    qrest committed Mar 16, 2021
    Configuration menu
    Copy the full SHA
    8586d11 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0b61da9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b9db5fb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    36dc12f View commit details
    Browse the repository at this point in the history