Skip to content

Instantly share code, notes, and snippets.

View sumeetweb's full-sized avatar
🌞
Exploring

Sumeet Naik sumeetweb

🌞
Exploring
View GitHub Profile
@sumeetweb
sumeetweb / IAMCredentials.json
Last active August 11, 2022 09:10 — forked from ServerlessBot/IAMCredentials.json
Minimum credential set for Serverless Framework
{
"Statement": [
{
"Action": [
"apigateway:*",
"cloudformation:CancelUpdateStack",
"cloudformation:ContinueUpdateRollback",
"cloudformation:CreateChangeSet",
"cloudformation:CreateStack",
"cloudformation:CreateUploadBucket",
@sumeetweb
sumeetweb / example_test.py
Created August 14, 2022 19:21
Mine another block and check it in node 2
# Disconnect p2p from node 2
self.nodes[2].disconnect_p2ps()
peer_messaging = self.nodes[0].add_p2p_connection(BaseNode())
self.log.info("Create some more blocks")
self.tip = int(self.nodes[0].getbestblockhash(), 16)
self.block_time = self.nodes[0].getblock(self.nodes[0].getbestblockhash())['time'] + 1
height = self.nodes[0].getblockcount()