Skip to content

Conversation

@luke-jr
Copy link
Member

@luke-jr luke-jr commented Jun 8, 2012

No description provided.

src/init.cpp Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be !defined(USE_IPV6) || !USE_IPV6 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If USE_IPV6 is not defined, then there's no support compiled in to disable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right.

@jgarzik
Copy link
Contributor

jgarzik commented Jun 8, 2012

IPv6 support should be enabled by default, disabled by necessity.

@luke-jr
Copy link
Member Author

luke-jr commented Jun 8, 2012

@jgarzik That's what this does...

@sipa
Copy link
Member

sipa commented Jun 8, 2012

What is the practical difference between USE_IPV6=0 and USE_IPV6=-? One compiles it in, but leaves no way to use it, the other just doesn't compile it in.

@luke-jr
Copy link
Member Author

luke-jr commented Jun 8, 2012

-onlynet=ipv6 should work, no?

@sipa
Copy link
Member

sipa commented Jun 8, 2012

If you call SetLimited(NET_IPV6) explicitly, -onlynet=ipv6 will just disable all other networks, and there won't be any network left.

@luke-jr
Copy link
Member Author

luke-jr commented Jun 8, 2012

That's why it's in an 'else' clause

@sipa
Copy link
Member

sipa commented Jun 8, 2012

Oops, missed that in the diff. ACK.

@luke-jr
Copy link
Member Author

luke-jr commented Jun 22, 2012

Found and fixed some build bugs:

  1. Omitting USE_IPV6 in Bitcoin-Qt effectively disabled it
  2. The preprocessor might evaluate the right-hand side of && even if the left hand side is false, so complained if USE_IPV6 was undefined

@jgarzik
Copy link
Contributor

jgarzik commented Aug 1, 2012

weak ACK. Would prefer a better system for including and overriding USE_FOO defaults. Some build systems look for a file "makefile.local" or "makefile.cfg" or whatever. If it exists, read it and use it to adjust the defaults.

@luke-jr
Copy link
Member Author

luke-jr commented Aug 1, 2012

GNUmakefile can be used for that purpose (I do this).

@Diapolo
Copy link

Diapolo commented Aug 1, 2012

Would be nice to not introduce something that does not work on Windows or makes building even harder to do @GNUmakefile ;).

@luke-jr
Copy link
Member Author

luke-jr commented Aug 1, 2012

@Diapolo GNUmakefile is more of an out-of-tree config thing. Windows has .BAT files :P

@BitcoinPullTester
Copy link

@luke-jr luke-jr mentioned this pull request Aug 13, 2012
@gmaxwell
Copy link
Contributor

ACK.

gmaxwell added a commit that referenced this pull request Aug 23, 2012
Make IPv6 support optional again (defaults to enabled)
@gmaxwell gmaxwell merged commit 1bcd3f2 into bitcoin:master Aug 23, 2012
@Diapolo
Copy link

Diapolo commented Aug 23, 2012

So with Qt, now do I need to supply "USE_IPV6=1" or is that also default for Qt ^^?

@luke-jr
Copy link
Member Author

luke-jr commented Aug 23, 2012

It's default.

@laanwj
Copy link
Member

laanwj commented Aug 24, 2012

It has been default for a long time. IPv6 is not exactly experimental anymore :)

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 Jan 22, 2019
lateminer pushed a commit to lateminer/bitcoin that referenced this pull request May 6, 2020
53cfbee [GUI] Automatic wallet backup after upgrade to HD (random-zebra)

Pull request description:

  Based on
  - [x] bitcoin#1387

  Offer the option to directly backup the wallet after upgrade-to-HD (and successive re-lock) is completed.

  The message on the initial dialog is changed (from "Note that you will need to MAKE A NEW BACKUP.."):

  ![backup1](https://user-images.githubusercontent.com/18186894/77027832-8d4f8b00-6997-11ea-88b5-d48ec64dc318.png)

  If the user clicks "OK", and the wallet is locked, the unlock dialog is directly shown (as per bitcoin#1387)

  ![backup2](https://user-images.githubusercontent.com/18186894/77027846-94769900-6997-11ea-8638-b59a11836fb3.png)

  After the upgrade, the client directly presents this dialog:

  ![backup3](https://user-images.githubusercontent.com/18186894/77028494-38ad0f80-6999-11ea-9fe4-1d1f06cf8c7c.png)

  If the user clicks "OK", then the open-file dialog is presented, so the user can select the filename for the backup file and click "Save" completing the flow.
  If the user clicks "CANCEL" (or dismisses the open-file dialog later), a snackbar  popup warns the user, telling to remember to backup asap.

ACKs for top commit:
  furszy:
    Tested ACK 53cfbee.
  Fuzzbawls:
    ACK 53cfbee

Tree-SHA512: 80fbcdb4d9805d75db98a0f394840f734314e6d249539997f1948cd7775ac2a81239b762386b7770c6ca4b8a2c38acdf1d5ae7ee7f07591bfdfc7dd4ee39cfc2
@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.

7 participants