Fix issue in eth disconnect block
This commit is contained in:
parent
8bdc3da694
commit
2507e12057
@ -1025,8 +1025,10 @@ func (d *RocksDB) disconnectBlockTxsEthereumType(wb *gorocksdb.WriteBatch, heigh
|
|||||||
if err := d.disconnectAddress(blockTx.btxID, false, c.from, c, addresses, contracts); err != nil {
|
if err := d.disconnectAddress(blockTx.btxID, false, c.from, c, addresses, contracts); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := d.disconnectAddress(blockTx.btxID, false, c.to, c, addresses, contracts); err != nil {
|
if !bytes.Equal(c.from, c.to) {
|
||||||
return err
|
if err := d.disconnectAddress(blockTx.btxID, false, c.to, c, addresses, contracts); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
wb.DeleteCF(d.cfh[cfTransactions], blockTx.btxID)
|
wb.DeleteCF(d.cfh[cfTransactions], blockTx.btxID)
|
||||||
|
|||||||
@ -71,10 +71,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="data ellipsis">{{if $t.Contract}}<a href="/address/{{$t.Contract}}">{{$t.Name}}</a>{{else}}{{$t.Name}}{{end}}</td>
|
<td class="data ellipsis">{{if $t.Contract}}<a href="/address/{{$t.Contract}}">{{$t.Name}}</a>{{else}}{{$t.Name}}{{end}}</td>
|
||||||
<td class="data">
|
<td class="data">
|
||||||
{{range $i, $iv := $t.Ids}}
|
{{range $i, $iv := $t.Ids}}{{if $i}}, {{end}}{{formatAmountWithDecimals $iv 0}}{{end}}
|
||||||
{{if $i}}, {{end}}
|
|
||||||
{{formatAmountWithDecimals $iv 0}}
|
|
||||||
{{end}}
|
|
||||||
</td>
|
</td>
|
||||||
<td class="data">{{$t.Transfers}}</td>
|
<td class="data">{{$t.Transfers}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -101,10 +98,7 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td class="data ellipsis">{{if $t.Contract}}<a href="/address/{{$t.Contract}}">{{$t.Name}}</a>{{else}}{{$t.Name}}{{end}}</td>
|
<td class="data ellipsis">{{if $t.Contract}}<a href="/address/{{$t.Contract}}">{{$t.Name}}</a>{{else}}{{$t.Name}}{{end}}</td>
|
||||||
<td class="data">
|
<td class="data">
|
||||||
{{range $i, $iv := $t.IdValues}}
|
{{range $i, $iv := $t.IdValues}}{{if $i}}, {{end}}{{formatAmountWithDecimals $iv.Id 0}}:{{formatAmountWithDecimals $iv.Value 0}} {{$t.Symbol}}{{end}}
|
||||||
{{if $i}}, {{end}}
|
|
||||||
{{formatAmountWithDecimals $iv.Id 0}}:{{formatAmountWithDecimals $iv.Value 0}} {{$t.Symbol}}
|
|
||||||
{{end}}
|
|
||||||
</td>
|
</td>
|
||||||
<td class="data">{{$t.Transfers}}</td>
|
<td class="data">{{$t.Transfers}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user