Separated code in to many individual modules #253

Merged
Atheros1 merged 16 commits from master into master 2013-06-25 05:24:50 +02:00
Showing only changes of commit 9925d55df2 - Show all commits

View File

@ -22,32 +22,12 @@ alreadyAttemptedConnectionsList = {
numberOfObjectsThatWeHaveYetToCheckAndSeeWhetherWeAlreadyHavePerPeer = {} numberOfObjectsThatWeHaveYetToCheckAndSeeWhetherWeAlreadyHavePerPeer = {}
neededPubkeys = {} neededPubkeys = {}
import sys
import Queue
from addresses import *
import shared
from defaultKnownNodes import *
import time
import socket
import threading
import hashlib
from struct import *
import pickle
import random
import sqlite3
from time import strftime, localtime, gmtime
import string
import socks
import highlevelcrypto
from pyelliptic.openssl import OpenSSL
#import ctypes #import ctypes
import signal # Used to capture a Ctrl-C keypress so that Bitmessage can shutdown gracefully. import signal # Used to capture a Ctrl-C keypress so that Bitmessage can shutdown gracefully.
# The next 3 are used for the API # The next 3 are used for the API
from SimpleXMLRPCServer import * from SimpleXMLRPCServer import *
import json import json
from subprocess import call # used when the API must execute an outside program
import singleton import singleton
import proofofwork
# Classes # Classes
from class_sqlThread import * from class_sqlThread import *
@ -60,10 +40,6 @@ from class_addressGenerator import *
# Helper Functions # Helper Functions
import helper_startup import helper_startup
import helper_bootstrap import helper_bootstrap
import helper_inbox
import helper_sent
import helper_generic
import helper_bitcoin
def isInSqlInventory(hash): def isInSqlInventory(hash):
t = (hash,) t = (hash,)