forked from etotheipi/BitcoinArmory
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed hardcore bug creating new wallets! Fwhew!
The update for "detectHighestUsedIndex()" was actually causing new wallets to register with negative values, and then was not serializing properly... This is why I need more testers. I almost let this n00b-killing bug into the latest "stable" release! Also updated copyrights on all files to include 2013
- Loading branch information
Showing
26 changed files
with
64 additions
and
797 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
################################################################################ | ||
# | ||
# Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> | ||
# Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> | ||
# Distributed under the GNU Affero General Public License (AGPL v3) | ||
# See LICENSE or http://www.gnu.org/licenses/agpl.html | ||
# | ||
################################################################################ | ||
# | ||
# Project: Armory (https://github.com/etotheipi/BitcoinArmory) | ||
# Project: Armory | ||
# Author: Alan Reiner | ||
# Website: www.bitcoinarmory.com | ||
# Orig Date: 20 November, 2011 | ||
# | ||
# Descr: This is the client/GUI for Armory. Complete wallet management, | ||
# encryption, offline private keys, watching-only wallets, and | ||
# hopefully multi-signature transactions. | ||
# | ||
# The features of the underlying library (armoryengine.py) make | ||
# this considerably simpler than it could've been, but my PyQt | ||
# skills leave much to be desired. | ||
# | ||
# | ||
################################################################################ | ||
|
||
import hashlib | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ def licenseText(): | |
Armory -- Bitcoin Client Software | ||
Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> | ||
Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> | ||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
################################################################################ | ||
# | ||
# Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> | ||
# Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> | ||
# Distributed under the GNU Affero General Public License (AGPL v3) | ||
# See LICENSE or http://www.gnu.org/licenses/agpl.html | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,21 @@ | ||
################################################################################ | ||
# | ||
# Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> | ||
# Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> | ||
# Distributed under the GNU Affero General Public License (AGPL v3) | ||
# See LICENSE or http://www.gnu.org/licenses/agpl.html | ||
# | ||
################################################################################ | ||
# | ||
# Project: Armory | ||
# Author: Alan Reiner | ||
# Website: www.bitcoinarmory.com | ||
# Orig Date: 20 November, 2011 | ||
# Descr: This file serves as an engine for python-based Bitcoin software. | ||
# I forked this from my own project -- PyBtcEngine -- because I | ||
# I needed to start including/rewriting code to use CppBlockUtils | ||
# but did not want to break the pure-python-ness of PyBtcEngine. | ||
# If you are interested in in a pure-python set of bitcoin utils | ||
# please go checkout the PyBtcEngine github project. | ||
# | ||
# Of course, the biggest advatage here is that you have access to | ||
# the blockchain through BlockObj/BlockObjRef/BlockUtils, as found | ||
# in the CppForSWIG directory. This is available in PyBtcEngine, | ||
# but I had to split out the modules, and I didn't have a good way | ||
# to maintain the pure-python module while also implementing all | ||
# the great SWIG-imported C++ utilities I built. | ||
# | ||
# This module replaces the ECDSA operations, with faster ones | ||
# implemented in C++ from Crypto++. This also enables the ability | ||
# to use SecureBinaryData objects for moving around private keys, | ||
# though I'm not entirely clear if python-based memory management | ||
# is going to properly clean up after itself, even with a page- | ||
# locked, self-destructing data container. | ||
# | ||
# | ||
################################################################################ | ||
|
||
|
||
# Version Numbers | ||
BTCARMORY_VERSION = (0, 86, 2, 0) # (Major, Minor, Minor++, even-more-minor) | ||
BTCARMORY_VERSION = (0, 86, 3, 0) # (Major, Minor, Minor++, even-more-minor) | ||
PYBTCWALLET_VERSION = (1, 35, 0, 0) # (Major, Minor, Minor++, even-more-minor) | ||
|
||
ARMORY_DONATION_ADDR = '1ArmoryXcfq7TnCSuZa9fQjRYwJ4bkRKfv' | ||
|
@@ -6823,7 +6803,7 @@ def detectHighestUsedIndex(self, writeResultToWallet=False, fullscan=False): | |
self.syncWithBlockchainLite(0) | ||
self.doBlockchainSync = oldSync | ||
|
||
highestIndex = self.highestUsedChainIndex | ||
highestIndex = max(self.highestUsedChainIndex, 0) | ||
for addr in self.getLinearAddrList(withAddrPool=True): | ||
a160 = addr.getAddr160() | ||
if len(self.getAddrTxLedger(a160)) > 0: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
################################################################################ | ||
# | ||
# Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> | ||
# Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> | ||
# Distributed under the GNU Affero General Public License (AGPL v3) | ||
# See LICENSE or http://www.gnu.org/licenses/agpl.html | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
//////////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> // | ||
// Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> // | ||
// Distributed under the GNU Affero General Public License (AGPL v3) // | ||
// See LICENSE or http://www.gnu.org/licenses/agpl.html // | ||
// // | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
################################################################################ | ||
# | ||
# Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> | ||
# Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> | ||
# Distributed under the GNU Affero General Public License (AGPL v3) | ||
# See LICENSE or http://www.gnu.org/licenses/agpl.html | ||
# | ||
################################################################################ | ||
|
||
import sys | ||
sys.path.append('..') | ||
sys.path.append('.') | ||
from armoryengine import * | ||
from getpass import getpass | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
################################################################################ | ||
# | ||
# Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> | ||
# Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> | ||
# Distributed under the GNU Affero General Public License (AGPL v3) | ||
# See LICENSE or http://www.gnu.org/licenses/agpl.html | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
################################################################################ | ||
# | ||
# Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> | ||
# Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> | ||
# Distributed under the GNU Affero General Public License (AGPL v3) | ||
# See LICENSE or http://www.gnu.org/licenses/agpl.html | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
################################################################################ | ||
# | ||
# Copyright (C) 2011-2012, Alan C. Reiner <[email protected]> | ||
# Copyright (C) 2011-2013, Alan C. Reiner <[email protected]> | ||
# Distributed under the GNU Affero General Public License (AGPL v3) | ||
# See LICENSE or http://www.gnu.org/licenses/agpl.html | ||
# | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters