Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 0 additions & 68 deletions server/ofacblacklist.go

This file was deleted.

30 changes: 0 additions & 30 deletions server/ofacblacklist_test.go

This file was deleted.

7 changes: 0 additions & 7 deletions server/request_sendrawtx.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@ func (r *RpcRequest) handle_sendRawTransaction() {
if err != nil {
r.logger.Error("[sendRawTransaction] Redis:SetSenderOfTxHash failed: %v", err)
}
isOnOfacList := isOnOFACList(r.txFrom) || isOnOFACList(r.tx.To().String())
r.ethSendRawTxEntry.IsOnOafcList = isOnOfacList
if isOnOfacList {
r.logger.Info("[sendRawTransaction] Blocked tx due to ofac sanctioned address", "txFrom", r.txFrom, "txTo", r.tx.To().String())
r.writeRpcError("blocked tx due to ofac sanctioned address", types.JsonRpcInvalidRequest)
return
}

// Check if transaction needs protection
needsProtection := r.doesTxNeedFrontrunningProtection(r.tx)
Expand Down