PlatONnetwork/PlatON-Go

platon.getTransactionReceipt return null for before transaction

Closed this issue · 4 comments

System information

PlatON version: v1.1.1
OS & Version: ubuntu20.04

node start with: --syncmode "full"

platon --identity platon --datadir ./data --rpcport 6789 --rpcapi "db,platon,net,web3,admin,personal" --rpc --rpcvhosts "*" --nodekey ./data/nodekey --cbft.blskey ./data/blskey --rpcaddr 127.0.0.1 --syncmode "full" --verbosity 2 > ./data/platon.log 2>&1 &

Expected behaviour

platon.getTransactionReceipt return null, platon.getTransaction is right,but I need get all transaction Receipt

Backtrace

platon.getTransactionReceipt("0xa0ae30225248d583afc57299060b82c77c2e5558f014363cbab1b1998df2c147");
{
blockHash: "0x56ad89b0f1d7b462edf588c7929ba291fce9881a27a234d5d55eebed795da38a",
blockNumber: 16807826,
contractAddress: null,
cumulativeGasUsed: 21000,
from: "lat15h9qljvd07urwuj63mxlyhj750lss5zu29an55",
gasUsed: 21000,
logs: [],
logsBloom: "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
status: "0x1",
to: "lat1uhqamxtakuln6n6y55x6nu5uvjs0ahgwxhj6aq",
transactionHash: "0xa0ae30225248d583afc57299060b82c77c2e5558f014363cbab1b1998df2c147",
transactionIndex: 0
}

platon.getTransactionReceipt("0x0e525e23881ae3c2ebf40d19fa6369a458637d78f81729e8bb4afed1cedfe8f1");
null

platon.getTransaction("0x26bce1e26cb28e5cb5ba79ec5378227855abda5cf4a804a2d39758a23291ce48");
{
blockHash: "0x2b74ccb2a2b0f1b67815dc9baa94119dfe1c28894d50d9d2c46438001f0354d5",
blockNumber: 8588271,
from: "lat15k7apfv5c0zah2ej2du9yvv9avf2cx7c0kp803",
gas: 49220,
gasPrice: 10000000000,
hash: "0x26bce1e26cb28e5cb5ba79ec5378227855abda5cf4a804a2d39758a23291ce48",
input: "0xf854838203ec8180b842b8401ac43afaf868184c9b60972a963b682e612f79b0169fea0f3220ac1b0dd69894eba5662dd7ce1f59e089335fcd34cf2d6806c3e5de84562da6feb1bd914ccd8d89888ac7230489e80000",
nonce: 124,
r: "0xbd8e6bab5dd3c6cb7ccc3e2e17f05974abb055c3b9c5f4db8ee4f942021cda51",
s: "0x682a60e24440afb2100b1e7b4c538cd3b1ec30e14477d7bd9977b1ec21bdb9a5",
to: "lat1zqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzsjx8h7",
transactionIndex: 0,
v: "0xeb",
value: 0
}

platon.getTransactionReceipt("0x26bce1e26cb28e5cb5ba79ec5378227855abda5cf4a804a2d39758a23291ce48");
null

When submitting logs: please submit them as text and not screenshots.

The reason for this is that PlatON optimises the storage based on state, so if your node is not started with the '--db.nogc', it will only keep the Receipts for a certain period of time

The reason for this is that PlatON optimises the storage based on state, so if your node is not started with the '--db.nogc', it will only keep the Receipts for a certain period of time

OK!thanks a lot

if your node is not started with the '--db.nogc', it will only keep the Receipts for a certain period of time

OK!thanks a lot

Sorry my fault! that should be "if your node is not started without --db.nogc parameter, it will only keep the Receipts for a certain period of time"

Closed due to prolonged absence of feedback