AegeusCoin / aegeus-ui

0 stars 2 forks source link

Add support for testnet addresses #4

Closed tdiesler closed 6 years ago

tdiesler commented 6 years ago

P2PKH addresses on the mainnet are assumed to start with 'A'. On the testnet with 'P'

[3:08 PM, 8/1/2018] Bill: java.lang.IllegalStateException: Not a P2PKH address: PkhDarSj4CokKqqcN9LG4CCCLT5UDj4o8k
    at io.nessus.utils.AssertState.assertTrue(AssertState.java:77)
    at io.aegeus.AegeusWallet.createNewAddress(AegeusWallet.java:58)
    at io.aegeus.AegeusWallet.createNewAddress(AegeusWallet.java:44)
    at io.nessus.AbstractWallet.newAddress(AbstractWallet.java:138)
    at io.aegeus.ipfs.portal.ContentHandler.actNewAddress(ContentHandler.java:273)
    at io.aegeus.ipfs.portal.ContentHandler.pageContent(ContentHandler.java:147)
    at io.aegeus.ipfs.portal.ContentHandler.handleRequest(ContentHandler.java:77)
    at io.undertow.server.Connectors.executeRootHandler(Connectors.java:360)
    at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:255)
    at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136)
    at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:59)
    at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
    at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66)
    at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:88)
    at org.xnio.nio.WorkerThread.run(WorkerThread.java:561)