Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented May 14, 2012

  • Use strprintf or vstrprintf instead of snprintf

- Use strprintf or vstrprintf instead of snprintf
@jgarzik
Copy link
Contributor

jgarzik commented May 14, 2012

looks good to my quick scan

@Diapolo
Copy link

Diapolo commented May 14, 2012

Looks good and get's rid of some damn char arrays and buffer-fiddling! ACK

@gavinandresen
Copy link
Contributor

ACK.

laanwj added a commit that referenced this pull request May 20, 2012
Get rid of snprintf (except one) with fixed buffers, shorten code
@laanwj laanwj merged commit 01ecb07 into bitcoin:master May 20, 2012
coblee pushed a commit to litecoin-project/litecoin that referenced this pull request Jul 17, 2012
Get rid of snprintf (except one) with fixed buffers, shorten code
@laanwj laanwj deleted the 2012_05_utilstrings branch April 9, 2014 14:15
MitchellCash pushed a commit to MitchellCash/paycoin that referenced this pull request Dec 6, 2015
- Use strprintf or vstrprintf instead of snprintf

reference: bitcoin/bitcoin#1302
suprnurd pushed a commit to chaincoin-legacy/chaincoin that referenced this pull request Dec 5, 2017
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request May 6, 2020
…te out of main

f578a68 Move CValidationState to consensus subdir (Fuzzbawls)
083cc4d Use AbortNode instead of state.Abort (Fuzzbawls)
ad77d3d Move consensus constants to consensus.h (Fuzzbawls)
c210d20 Move CBlockTemplate from main.h to miner.h (Fuzzbawls)
4d8b9ce Move CBlockFileInfo class from main.h to chain.h (Fuzzbawls)
668ac61 Refactor nMaxMoneyOut back to amount.h (Fuzzbawls)

Pull request description:

  This is the first part of bitcoin#1209 that moves the CBlockFileInfo and CValidationState classes (and their supporting constants) out of `main.cpp(.h)`

  @barrystyle's original commits have been further split to assist in review-ability ease.

  I left the refactor of `nMaxMoneyOut` and `CBlockTemplate` included here as they are rather straight forward, however they each now are in their own respective commits.

ACKs for top commit:
  random-zebra:
    utACK f578a68
  furszy:
    utACK f578a68

Tree-SHA512: 4433aacde02be0479d6c8ac3d6d4d725c4ed5518c82a412539e791f62b63516f042828c0407a697b4018c8f92965425f05837293a38d6da890a98bdf0e4e9dfe
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants