From 08006bce3dd52b9f5a65f038e3b08f18f0eba707 Mon Sep 17 00:00:00 2001 From: frrist Date: Tue, 21 Jul 2020 08:49:27 -0700 Subject: [PATCH] fix: use bigint for gas_used in message receipt - prevents overflows --- cmd/lotus-chainwatch/processor/messages.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-chainwatch/processor/messages.go b/cmd/lotus-chainwatch/processor/messages.go index 16d77546f..65ad153d8 100644 --- a/cmd/lotus-chainwatch/processor/messages.go +++ b/cmd/lotus-chainwatch/processor/messages.go @@ -74,7 +74,7 @@ create table if not exists receipts state text not null, idx int not null, exit int not null, - gas_used int not null, + gas_used bigint not null, return bytea, constraint receipts_pk primary key (msg, state)