ethereum / ethereumj

DEPRECATED! Java implementation of the Ethereum yellowpaper. For JSON-RPC and other client features check Ethereum Harmony
GNU Lesser General Public License v3.0
2.18k stars 1.1k forks source link

Transaction getKey is always null #1248

Open jolestar opened 5 years ago

jolestar commented 5 years ago
@Test
    public void testGetKeyFromSignature() {
        ECKey sender = new ECKey();
        BlockchainImpl blockchain = ImportLightTest.createBlockchain(GenesisLoader.loadGenesis(
                getClass().getResourceAsStream("/genesis/genesis-light.json")));
        Transaction tx = createTx(blockchain, sender, new byte[32], new byte[0], 100);
        Assert.assertNotNull(tx.getKey());
    }

tx.getKey() is always null.