Code Monkey home page Code Monkey logo

vaccinati's People

Contributors

mikeisbeast1357 avatar rohan353 avatar thetrinity1789 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

bhushanmandlik

vaccinati's Issues

Mining issues

bug when two people mine at the same time, the client who mined it second errors out, requiring a full program restart.

Build 0.5 Client node problem

Threading works with 3 connections and stops when 1 connection has connected
`def setup(s):

print('Receiving Server Node \n')

c_node = recieve_c_node()

if c_node == '!NONE':
    print('No available server nodes \n')
    time.sleep(5)

if c_node != '!NONE':
    # [addr,xport,connection_count]
    ADDR = (str(c_node[0]), int(c_node[1]))
    print(ADDR)
    s.connect(ADDR)
    ex_cons.append(c_node[0])
    print('Connected to Server node \n')

    return s, c_node[0]

def connection_handler():

while True:

    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

    print('Setting up')

    s, addr = setup(s)

    connected = True

    while connected:

        print('Listening on Connection')

        message = s.recv(1024).decode(FORMAT)

        # more here

        if message == DISCONNECT:
            print('Server Disconnected')
            s.close()
            ex_cons.remove(addr)
            connected = False

``
tried to convert to function instead of class
`thread1 = threading.Thread(target=connection_handler)
thread2 = threading.Thread(target=connection_handler)
thread3 = threading.Thread(target=connection_handler)

thread1.start()
thread2.start()
thread3.start()
`

Bugs with Build 0.3

-cnodes list has problems
-connection aborted error in server node
-timers need to be removed

Website look improvements

Make the website look better, it can be found in the server file, along with html/css from the templates folder

Multiple Connections

Due to the long time mining the genesis block, if other clients connect during this happening, a bug causes the whole system to error out, requiring a server restart

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.