mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
graphql: update schema for timestamp
This commit is contained in:
parent
526250e464
commit
fb060f4b02
2 changed files with 2 additions and 2 deletions
|
|
@ -48,7 +48,7 @@ func TestBlockEncoding(t *testing.T) {
|
||||||
check("Root", block.Root(), common.HexToHash("ef1552a40b7165c3cd773806b9e0c165b75356e0314bf0706f279c729f51e017"))
|
check("Root", block.Root(), common.HexToHash("ef1552a40b7165c3cd773806b9e0c165b75356e0314bf0706f279c729f51e017"))
|
||||||
check("Hash", block.Hash(), common.HexToHash("0a5843ac1cb04865017cb35a57b50b07084e5fcee39b5acadade33149f4fff9e"))
|
check("Hash", block.Hash(), common.HexToHash("0a5843ac1cb04865017cb35a57b50b07084e5fcee39b5acadade33149f4fff9e"))
|
||||||
check("Nonce", block.Nonce(), uint64(0xa13a5a8c8f2bb1c4))
|
check("Nonce", block.Nonce(), uint64(0xa13a5a8c8f2bb1c4))
|
||||||
check("Time", block.Time(), big.NewInt(1426516743))
|
check("Time", block.Time(), uint64(1426516743))
|
||||||
check("Size", block.Size(), common.StorageSize(len(blockEnc)))
|
check("Size", block.Size(), common.StorageSize(len(blockEnc)))
|
||||||
|
|
||||||
tx1 := NewTransaction(0, common.HexToAddress("095e7baea6a6c7c4c2dfeb977efac326af552d87"), big.NewInt(10), 50000, big.NewInt(10), nil)
|
tx1 := NewTransaction(0, common.HexToAddress("095e7baea6a6c7c4c2dfeb977efac326af552d87"), big.NewInt(10), 50000, big.NewInt(10), nil)
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ const schema string = `
|
||||||
# GasUsed is the amount of gas that was used executing transactions in this block.
|
# GasUsed is the amount of gas that was used executing transactions in this block.
|
||||||
gasUsed: Long!
|
gasUsed: Long!
|
||||||
# Timestamp is the unix timestamp at which this block was mined.
|
# Timestamp is the unix timestamp at which this block was mined.
|
||||||
timestamp: BigInt!
|
timestamp: Long!
|
||||||
# LogsBloom is a bloom filter that can be used to check if a block may
|
# LogsBloom is a bloom filter that can be used to check if a block may
|
||||||
# contain log entries matching a filter.
|
# contain log entries matching a filter.
|
||||||
logsBloom: Bytes!
|
logsBloom: Bytes!
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue